Commit graph

175 commits

Author SHA1 Message Date
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
Daniel Bachhuber
7f4114fb65 Merge pull request #84 from runcommand/32-profile-eval
Use `wp profile eval` to profile arbitrary code execution
2016-10-04 13:21:34 -07:00
Daniel Bachhuber
3ff6ba0229 Use wp profile eval to profile arbitrary code execution 2016-10-04 12:57:10 -07:00
Daniel Bachhuber
c983a559c9 Merge pull request #83 from runcommand/22-trailingslash
Trailingslash provided URL to avoid canonical redirect
2016-10-04 08:05:10 -07:00
Daniel Bachhuber
d83d6438c4 Fix test setup for assertion 2016-10-04 07:27:31 -07:00
Daniel Bachhuber
781db99ed7 Trailingslash provided URL to avoid canonical redirect 2016-10-04 07:18:01 -07:00
Daniel Bachhuber
d49fc950f4 Failing test case for https://github.com/runcommand/sparks/issues/22 2016-10-04 07:17:24 -07:00
Daniel Bachhuber
cd2ebfe4a9 Merge pull request #82 from runcommand/23-split-stage-hook
Split `wp profile` into `wp profile stage` and `wp profile hook`
2016-10-04 07:06:40 -07:00
Daniel Bachhuber
767d9cb38c Regenerate README for command split 2016-10-04 06:49:18 -07:00
Daniel Bachhuber
7e05977968 Split wp profile into wp profile stage and wp profile hook 2016-10-04 06:47:01 -07:00
Daniel Bachhuber
036fef95ad Merge pull request #81 from runcommand/fix-installing-purchase-link
Fix purchase link in Installing section
2016-10-04 06:44:19 -07:00
Daniel Bachhuber
233346cbe2 Fix purchase link in Installing section
$49 is now $129
2016-10-04 06:23:01 -07:00
Daniel Bachhuber
7faeb754b2 Merge pull request #80 from runcommand/end-early-access
End early access; use common premium support stub
2016-10-04 06:17:56 -07:00
Daniel Bachhuber
eb2e462660 End early access; use common premium support stub 2016-09-30 06:49:10 -07:00
Daniel Bachhuber
d12e867a13 Merge pull request #79 from runcommand/really-late-hook
Ensure last callback is extremely late
2016-09-28 05:39:13 -07:00
Daniel Bachhuber
98c92bca7c Ensure last callback is extremely late 2016-09-28 05:27:58 -07:00
Daniel Bachhuber
8e42632bee Merge pull request #78 from runcommand/fix-variable-76
Fix incorrect variable
2016-09-28 05:19:34 -07:00
Daniel Bachhuber
89ffa3a8cb Fix incorrect variable 2016-09-28 05:12:54 -07:00
Daniel Bachhuber
b5ea0a7057 Merge pull request #77 from runcommand/bump-0-3-0
Bump working version to v0.3.0-alpha
2016-09-27 09:33:25 -07:00
Daniel Bachhuber
1427f3436d Bump working version to v0.3.0-alpha 2016-09-27 08:51:31 -07:00
Daniel Bachhuber
db517e0320 Merge pull request #76 from runcommand/test-trunk
Fix profiling hooks on WordPress trunk
2016-09-27 08:50:54 -07:00
Daniel Bachhuber
f2960d7eab Properly handle an unset $wp_filter 2016-09-27 08:10:41 -07:00
Daniel Bachhuber
024142a69a Drop method that's no longer used 2016-09-27 08:01:12 -07:00
Daniel Bachhuber
f114b404e1 Take a more durable approach to timing callbacks by wrapping each 2016-09-27 07:58:36 -07:00
Daniel Bachhuber
a52759f301 Update test suite to actually handle WP_VERSION 2016-09-27 06:17:48 -07:00
Daniel Bachhuber
53cb673d4a Don't use WP-CLI directly because it's not available 2016-09-27 06:08:26 -07:00