Commit graph

200 commits

Author SHA1 Message Date
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
Daniel Bachhuber
644f895759 Merge pull request #88 from runcommand/45-callback-definition
Include callback definition source when profiling hooks
2016-10-07 14:36:43 -07:00
Daniel Bachhuber
99914b71b2 Include callback definition source when profiling hooks 2016-10-07 14:20:08 -07:00
Daniel Bachhuber
b8f642aa4e Merge pull request #87 from runcommand/46-skip-total
Don't include 'total' cell when the name column is omitted
2016-10-07 14:05:01 -07:00
Daniel Bachhuber
be24080cb2 Don't include 'total' cell when the name column is omitted 2016-10-07 13:56:38 -07:00
Daniel Bachhuber
543453a998 Failing test case for #46 2016-10-07 13:44:45 -07:00
Daniel Bachhuber
261be3b36a Merge pull request #86 from runcommand/37-eval-file
Support profiling arbitrary file execution
2016-10-04 14:51:49 -07:00
Daniel Bachhuber
6572e96664 Support profiling arbitrary file execution 2016-10-04 14:38:12 -07:00
Daniel Bachhuber
e6d2cfcd4d Merge pull request #85 from runcommand/11-shutdown
Support profiling the `shutdown` hook
2016-10-04 14:24:11 -07:00
Daniel Bachhuber
072d80e2d6 Support profiling the shutdown hook 2016-10-04 14:10:27 -07:00