Commit graph

25 commits

Author SHA1 Message Date
Alain Schlesser
f33ff60da2 Change PHPCS ignore setting to match error name string 2018-09-25 20:16:08 +02:00
Alain Schlesser
d51a18884a Fix CS issues 2018-09-25 18:49:32 +02:00
Wojciech Smoliński
eac304fff2 ignore PHPCompatibility.PHP.ForbiddenGlobalVariableVariable.NonBareVariableFound 2018-08-11 15:53:41 +02:00
Wojciech Smoliński
8bc39c2f99 $$key to ${$key} 2018-08-11 15:40:31 +02:00
Wojciech Smoliński
bcff53dd7f more phpcs ignores 2018-08-11 15:33:50 +02:00
Wojciech Smoliński
6772ede282 phpcs fixes 2018-08-11 15:08:27 +02:00
Wojciech Smoliński
a9409ceef1 phpcs 2018-08-10 19:18:48 +02:00
John Blackbourn
b149a5a4e6 Fix doc that references global scope. 2018-01-13 18:30:11 +00:00
Daniel Bachhuber
798944b341 Include mention that profiling intermediate hooks is broken in PHP7 2016-11-15 08:06:31 -08:00
Daniel Bachhuber
fefcc60b0d Use --hook[=<hook>] to profile all hooks, or callbacks to spec hook 2016-11-14 06:30:19 -08:00
Daniel Bachhuber
bb64f248f9 Support for profiling wp_loaded:after 2016-10-26 06:54:43 -07:00
Daniel Bachhuber
d6f4fc28f2 Ensure tick_callback is nullified when ignoring a callback 2016-10-26 06:29:07 -07:00
Daniel Bachhuber
85d1c1debf Disable opcode cache when using register_tick_function() 2016-10-19 18:14:28 -07:00
Daniel Bachhuber
6a2052244a Start profiling right away when profiling muplugins_loaded:before 2016-10-19 04:56:53 -07:00
Daniel Bachhuber
0989767e2e Shorten the code location at the point of rendering the loggers 2016-10-09 16:15:16 -07:00
Daniel Bachhuber
0a365862d3 Use more precise hooks for profiling intermediate stages 2016-10-09 15:43:02 -07:00
Daniel Bachhuber
e6a05be838 Reset tick callback after we've completed profiling 2016-10-09 10:45:38 -07:00
Daniel Bachhuber
7bb69131f2 First pass at profiling intermediate stages 2016-10-09 10:33:48 -07:00
Daniel Bachhuber
944696431a Put names to the intermediate stages
For the most part, it's `<hook>:before`, except when it's the last hook
in the sequence.
2016-10-09 09:05:27 -07:00
Daniel Bachhuber
178e0454b6 Use --all to profile callbacks on all hooks 2016-10-08 16:18:48 -07:00
Daniel Bachhuber
5f2c0f52cc Keep track of recursion in a more precise manner 2016-10-08 16:02:46 -07:00
Daniel Bachhuber
4e6cc627cf Omit <hook> to profile all called hooks 2016-10-08 07:27:46 -07:00
Daniel Bachhuber
8af2db1892 Fully resolve ABSPATH 2016-10-08 07:00:05 -07:00
Daniel Bachhuber
d15f6ac6c9 Abstract, to avoid direct manipulation of the global 2016-10-08 06:49:28 -07:00
Daniel Bachhuber
8969a5a859 Abstract profiler to a dedicated class 2016-10-08 06:37:41 -07:00