wp-cli / profile-command

Quickly identify what's slow with WordPress
MIT License
271 stars 29 forks source link

Put names to the intermediate stages for `--stage=<stage>` #62

Closed danielbachhuber closed 7 years ago

danielbachhuber commented 8 years ago

The empty cells are confusing in this chart:

salty-wordpress ➜  plugins  wp profile --stage=bootstrap --fields=hook,time
+-------------------+---------+
| hook              | time    |
+-------------------+---------+
|                   | 0.3213s |
| muplugins_loaded  | 0.0002s |
|                   | 0.0206s |
| plugins_loaded    | 0.0358s |
|                   | 0.0004s |
| setup_theme       | 0s      |
|                   | 0.0159s |
| after_setup_theme | 0.0085s |
|                   | 0.0002s |
| init              | 0.0099s |
|                   | 0s      |
| wp_loaded         | 0.0001s |
+-------------------+---------+
| total             | 0.4129s |
+-------------------+---------+
danielbachhuber commented 7 years ago

🚢