Commit graph

209 commits

Author SHA1 Message Date
Daniel Bachhuber
f843cd2d34 Merge pull request #108 from runcommand/13-spotlight
Use `--spotlight` to filter zero-ish results from the set
2016-10-26 06:10:28 -07:00
Daniel Bachhuber
873a94a2b6 Assert --spotlight as an available flag 2016-10-26 05:54:26 -07:00
Daniel Bachhuber
4aef374308 Use --spotlight to filter zero-ish results from the set 2016-10-26 05:40:34 -07:00
Daniel Bachhuber
4afd95dee3 Merge pull request #107 from runcommand/danielbachhuber-patch-1
Use "type": "wp-cli-package" to designate this as a WP-CLI package
2016-10-20 07:31:03 -07:00
Daniel Bachhuber
c9b462d912 Use "type": "wp-cli-package" to designate this as a WP-CLI package 2016-10-20 06:41:39 -07:00
Daniel Bachhuber
b24e47a86e Merge pull request #106 from runcommand/15-disable-opcode-cach
Disable opcode cache when using `register_tick_function()`
2016-10-19 19:11:15 -07:00
Daniel Bachhuber
b9ea658b7e Disable opcode cache when using register_tick_function() 2016-10-19 18:14:28 -07:00
Daniel Bachhuber
7cb59c0f47 Merge pull request #105 from runcommand/circle-timezone
Set timezone in CircleCI to prevent random build failures
2016-10-19 06:19:18 -07:00
Daniel Bachhuber
4afe7d974e Set timezone in CircleCI to prevent random build failures 2016-10-19 06:11:14 -07:00
Daniel Bachhuber
922bab3f77 Merge pull request #104 from runcommand/clarify-fiels
Clarify the `--fields` argument
2016-10-19 05:49:37 -07:00
Daniel Bachhuber
57d5388985 Merge pull request #103 from runcommand/50-profile-mu-plugins
Start profiling right away when profiling `muplugins_loaded:before`
2016-10-19 05:29:14 -07:00
Daniel Bachhuber
75bb6f6c50 Clarify the --fields argument 2016-10-19 05:27:31 -07:00
Daniel Bachhuber
8ef779f8cd Start profiling right away when profiling muplugins_loaded:before 2016-10-19 04:56:53 -07:00
Daniel Bachhuber
908e0c632f Failing test case for profiling muplugins_loaded:before 2016-10-19 04:54:58 -07:00
Daniel Bachhuber
66e875ce5a Merge pull request #102 from runcommand/mention-hook-execution
Mention that the hook needs to fire in order to profile it
2016-10-12 05:40:58 -07:00
Daniel Bachhuber
d07b98046d Mention that the hook needs to fire in order to profile it 2016-10-12 05:01:32 -07:00
Daniel Bachhuber
b31681d98c Merge pull request #101 from runcommand/regenerate-readme
Regenerate readme from command docs
2016-10-10 15:53:36 -07:00
Daniel Bachhuber
91efdf261c Regenerate readme from command docs 2016-10-10 15:05:40 -07:00
Daniel Bachhuber
b26f6587a9 Merge pull request #100 from runcommand/15-profile-intermediate
Support for profiling intermediate stages
2016-10-09 16:24:28 -07:00
Daniel Bachhuber
040a9fa7b3 Shorten the code location at the point of rendering the loggers 2016-10-09 16:15:16 -07:00
Daniel Bachhuber
76fb50b5c1 Use more precise hooks for profiling intermediate stages 2016-10-09 15:43:02 -07:00
Daniel Bachhuber
870b947fd2 Reset tick callback after we've completed profiling 2016-10-09 10:45:38 -07:00
Daniel Bachhuber
7729a11118 First pass at profiling intermediate stages 2016-10-09 10:33:48 -07:00
Daniel Bachhuber
79dbd1a45c Merge pull request #99 from runcommand/15-name-intermediate
Put names to the intermediate stages
2016-10-09 09:24:49 -07:00
Daniel Bachhuber
49f9159ff2 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
b599641076 Merge pull request #98 from runcommand/23-all-flag
Use `--all` to profile callbacks on all hooks
2016-10-08 17:24:37 -07:00
Daniel Bachhuber
a553050462 Use --all to profile callbacks on all hooks 2016-10-08 16:18:48 -07:00
Daniel Bachhuber
5669e24f69 Merge pull request #97 from runcommand/23-precise-recursion
Keep track of recursion in a more precise manner
2016-10-08 16:10:40 -07:00
Daniel Bachhuber
35390961eb Keep track of recursion in a more precise manner 2016-10-08 16:02:46 -07:00
Daniel Bachhuber
2ee124c397 Merge pull request #96 from runcommand/23-profile-all-hooks
Omit `<hook>` to profile all called hooks
2016-10-08 08:47:46 -07:00
Daniel Bachhuber
d176676c16 Update test for new accepted argument 2016-10-08 08:24:46 -07:00
Daniel Bachhuber
828f7d618e Omit <hook> to profile all called hooks 2016-10-08 07:27:46 -07:00
Daniel Bachhuber
5deb2ef0c8 Merge pull request #95 from runcommand/fix-abspath-relative
Fully resolve `ABSPATH`
2016-10-08 07:08:14 -07:00
Daniel Bachhuber
da5e2e1b25 Fully resolve ABSPATH 2016-10-08 07:00:05 -07:00
Daniel Bachhuber
73be01fca1 Merge pull request #94 from runcommand/abstract-profile-class
Abstract profiler to a dedicated class
2016-10-08 06:55:21 -07:00
Daniel Bachhuber
4256195368 Abstract, to avoid direct manipulation of the global 2016-10-08 06:49:28 -07:00
Daniel Bachhuber
2ea5138f08 Abstract profiler to a dedicated class 2016-10-08 06:37:41 -07:00
Daniel Bachhuber
b317d5b118 Merge pull request #93 from runcommand/23-callback-count
Indicate callback count when profiling a stage
2016-10-08 06:01:56 -07:00
Daniel Bachhuber
ff802e8de9 WordPress doesn't like this last hook added to shutdown 2016-10-08 05:56:25 -07:00
Daniel Bachhuber
67f7050cda Merge pull request #92 from runcommand/registered-commands
Ensure we only register specific methods as commands
2016-10-07 16:23:03 -07:00
Daniel Bachhuber
7be192206e Indicate callback count when profiling a stage 2016-10-07 16:18:04 -07:00
Daniel Bachhuber
bea808faa0 Merge pull request #91 from runcommand/assert-stage-hooks
Assert hooks for each stage
2016-10-07 16:04:50 -07:00
Daniel Bachhuber
b5946648b7 Ensure we only register specific methods as commands 2016-10-07 16:02:26 -07:00
Daniel Bachhuber
bd11205e6c Assert hooks for each stage 2016-10-07 15:58:08 -07:00
Daniel Bachhuber
c1f76a41e9 Merge pull request #90 from runcommand/23-all-stages
Use --all flag to profile all stages
2016-10-07 15:50:35 -07:00
Daniel Bachhuber
c24c302f4f Use --all flag to profile all stages 2016-10-07 15:45:48 -07:00
Daniel Bachhuber
7b3d937a58 Merge pull request #89 from runcommand/hook-count
Hooks should only be called once
2016-10-07 15:33:49 -07:00
Daniel Bachhuber
5d4d6450ce Keep track of filter depth to appropriately handle recursion 2016-10-07 15:27:29 -07:00
Daniel Bachhuber
5a3cffcd79 Restore existing callbacks on the next hook
While this is less precise, doing so ensures our callbacks aren't called
twice (because they'll be called twice if they're restored to the
array).
2016-10-07 14:57:06 -07:00
Daniel Bachhuber
c399e86283 Failing test cause for hooks being called twice 2016-10-07 14:45:13 -07:00