Commit graph

29 commits

Author SHA1 Message Date
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
604f3edbc6 Consolidate calls to the formatter 2016-08-26 07:05:20 -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
db58a3c5a0 Namespace the command class 2016-08-26 06:13:19 -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
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
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
deed70cb2b Round time to four decimal points, instead of 5
5 is too many
2016-08-24 13:33:12 -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
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
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
Daniel Bachhuber
cd6e40a6f8 Produce a more comprehensive summary 2016-07-25 10:17:10 -07:00
Daniel Bachhuber
f2c529011e Tighten the description a bit 2016-07-25 08:58:11 -07:00
Daniel Bachhuber
77f6835381 Count the number of hooks with total hook execution time 2016-07-25 08:46:58 -07:00
Daniel Bachhuber
61f07ec0f1 These are all totals 2016-07-25 08:30:00 -07:00
Daniel Bachhuber
dc04782a8f Calculate total queries 2016-07-25 08:10:43 -07:00
Daniel Bachhuber
c71ba8cafe Put a space between the value and the unit 2016-07-25 08:01:05 -07:00
Daniel Bachhuber
990062d7ee Formatting args 2016-07-25 08:00:59 -07:00
Daniel Bachhuber
e292cf55d9 First pass: total execution time and memory usage 2016-07-25 07:59:37 -07:00
Daniel Bachhuber
6cfb16f387 Initial commit 2016-07-25 07:36:55 -07:00