BitOne / php-meminfo

PHP extension to get insight about memory usage
MIT License
1.08k stars 78 forks source link

Add top-ranges command #127

Open fnash opened 1 year ago

fnash commented 1 year ago

This PR suggests a new command top-ranges to follow the evolution of the volume of instances by the range as an indicator.

Given a directory of dump files, generated over process run time:

bin/analyzer top-ranges dumpDir --show-zero
3 dump files found.
+--------+-------+
| Type   | Range |
+--------+-------+
| Foo    | 4     |
| string | 2     |
| Bar    | 0     |
+--------+-------+

It output the range (max instance count - min instance count) of the volume of objects of each type.