Commit graph

60 commits

Author SHA1 Message Date
Daniel Bachhuber
a0bf59ae29 Make sure this logger is started 2016-08-26 09:37:41 -07:00
Daniel Bachhuber
dc8f84d28e Merge pull request #31 from runcommand/convert-scope-logger
Convert scopes to logger format
2016-08-26 09:34:29 -07:00
Daniel Bachhuber
db48754306 Merge pull request #30 from runcommand/fix-cache-hit-miss
Fix cache hit / miss ratio
2016-08-26 09:34:04 -07:00
Daniel Bachhuber
c4cd8ba7bf Set up the pseudo hooks too 2016-08-26 09:32:14 -07:00
Daniel Bachhuber
59b24ff04e Merge pull request #29 from runcommand/hook-count
Count all hook calls, regardless of whether we're in a current hook
2016-08-26 09:21:48 -07:00
Daniel Bachhuber
ddc5dd0faf Fix cache hit / miss ratio 2016-08-26 09:20:40 -07:00
Daniel Bachhuber
8b21576287 First pass at converting scopes to logger format 2016-08-26 09:20:19 -07:00
Daniel Bachhuber
5c14cba9a0 Merge pull request #28 from runcommand/15-cache-hit-miss
Capture cache hit / miss ratio
2016-08-26 09:07:07 -07:00
Daniel Bachhuber
996b5dc685 Count all hook calls, regardless of whether we're in a current hook 2016-08-26 09:06:49 -07:00
Daniel Bachhuber
257c7a40ef Percentages for the cache ratio 2016-08-26 09:04:20 -07:00
Daniel Bachhuber
b5bac6b2fe Capture cache hit / miss ratio 2016-08-26 09:00:11 -07:00
Daniel Bachhuber
a115f4b2ea Merge pull request #27 from runcommand/smaller-chart
Create a smaller chart by collapsing fields
2016-08-26 08:49:12 -07:00
Daniel Bachhuber
aff0a95333 Create a smaller chart by collapsing fields 2016-08-26 08:46:22 -07:00
Daniel Bachhuber
80cf90c427 Merge pull request #26 from runcommand/2-count-remote-requests
Log request count and time
2016-08-26 08:28:32 -07:00
Daniel Bachhuber
c1319d704b Log request count and time 2016-08-26 08:26:42 -07:00
Daniel Bachhuber
740c530fed Merge pull request #24 from runcommand/fix-hook-time
Fix calculated hook time
2016-08-26 08:11:33 -07:00
Daniel Bachhuber
81501f5cb0 Fix calculated hook time
The timer shouldn't be started and stopped as we go deeper into hooks
2016-08-26 08:08:51 -07:00
Daniel Bachhuber
4a4873351f Merge pull request #23 from runcommand/introduce-logger
Introduce a new Logger class for more sane logging
2016-08-26 07:51:28 -07:00
Daniel Bachhuber
664512ac8b Increment hook counter when timer starts 2016-08-26 07:43:04 -07:00
Daniel Bachhuber
4365551db2 Introduce a new Logger class for more sane logging 2016-08-26 07:42:05 -07:00
Daniel Bachhuber
896b9da3fc Merge pull request #22 from runcommand/consolidate
Consolidate calls to the formatter
2016-08-26 07:08:21 -07:00
Daniel Bachhuber
604f3edbc6 Consolidate calls to the formatter 2016-08-26 07:05:20 -07:00
Daniel Bachhuber
0ad9fc671c Merge pull request #21 from runcommand/total-in-table
Use table footer for totals; pretty format seconds in the table
2016-08-26 07:00:42 -07:00
Daniel Bachhuber
cc5c06b6b4 Use table footer for totals; pretty format seconds in the table 2016-08-26 06:57:19 -07:00
Daniel Bachhuber
919dda5637 Introduce our own formatter, so we can implement custom tables 2016-08-26 06:39:30 -07:00
Daniel Bachhuber
47b6968f5c Merge pull request #20 from runcommand/namespace-class
Namespace the command class
2016-08-26 06:17:34 -07:00
Daniel Bachhuber
db58a3c5a0 Namespace the command class 2016-08-26 06:13:19 -07:00
Daniel Bachhuber
a5e84bd068 Merge pull request #17 from runcommand/profile-hook
Profile hook execution
2016-08-25 07:24:33 -07:00
Daniel Bachhuber
1ea2fd2a92 Better place to put the Exception handling 2016-08-25 07:19:16 -07:00
Daniel Bachhuber
10a7f500e9 Throw an exception, because there's no way we can restore the hooks 2016-08-25 07:17:47 -07:00
Daniel Bachhuber
785c83949e Abstract to a dedicated helper method 2016-08-25 07:13:40 -07:00
Daniel Bachhuber
a449366b66 First pass at profiling hook execution 2016-08-25 07:00:39 -07:00
Daniel Bachhuber
ca8db28d69 Merge pull request #14 from runcommand/1-focus-scope-two
Better implementation of `--scope=<scope>`
2016-08-24 17:01:47 -07:00
Daniel Bachhuber
b85d55d15a Better implementation of --scope=<scope>
Less information is more
2016-08-24 16:57:37 -07:00
Daniel Bachhuber
3ac8789cd5 Regenerate display chart 2016-08-24 15:17:30 -07:00
Daniel Bachhuber
0e1431274f Merge pull request #12 from runcommand/drop-memory-usage
Drop memory usage from the profiler
2016-08-24 15:11:44 -07:00
Daniel Bachhuber
ec98f87181 Drop memory usage from the profiler
As it turns out, this isn't very helpful. Everyone has access to
infinite memory now.
2016-08-24 15:09:00 -07:00
Daniel Bachhuber
295198dd52 Merge pull request #11 from runcommand/round-four
Round time to four decimal points, instead of 5
2016-08-24 13:35:01 -07:00
Daniel Bachhuber
deed70cb2b Round time to four decimal points, instead of 5
5 is too many
2016-08-24 13:33:12 -07:00
Daniel Bachhuber
6887d14615 Merge pull request #9 from runcommand/change-license
Change license to GPL-2.0
2016-08-24 13:16:27 -07:00
Daniel Bachhuber
fba6476df7 Merge pull request #7 from runcommand/use-wp-cli-hook
Use WP-CLI's helpers for registering new hooks and filters
2016-08-24 12:30:09 -07:00
Daniel Bachhuber
0ff5d7ec55 Change license to GPL-2.0 2016-08-24 12:29:12 -07:00
Daniel Bachhuber
d9c8323c71 Merge pull request #8 from runcommand/total-first
Display the total counts first, as its more useful
2016-08-24 12:24:11 -07:00
Daniel Bachhuber
6963641c53 Display the total counts first, as its more useful 2016-08-24 12:16:02 -07:00
Daniel Bachhuber
fc05191ad2 Use WP-CLI's helpers for registering new hooks and filters 2016-08-24 12:13:33 -07:00
Daniel Bachhuber
6a8c685742 Merge pull request #6 from runcommand/use-circle
Use Circle to run test suite
2016-08-24 12:08:21 -07:00
Daniel Bachhuber
bd5f07f597 Use a Circle badge 2016-08-24 12:05:37 -07:00
Daniel Bachhuber
f2c0778ef7 Mention what's going on here 2016-07-25 11:16:32 -07:00
Daniel Bachhuber
5dc4c74255 Remove unused variables 2016-07-25 11:16:26 -07:00
Daniel Bachhuber
e1a2d32d26 Put the total at the bottom, as most users expect 2016-07-25 11:11:08 -07:00