regolith icon indicating copy to clipboard operation
regolith copied to clipboard

Add --analyze flag into `regolith run`

Open SirLich opened this issue 2 years ago • 0 comments

I've been thinking about performance, since Nusiq started asking about caching runs and partial-compilation.

I think a nice feature to have is a --analyze flag, which saves up all the runtime numbers, then outputs them at a table at the end.

Something like this:

+-------------------------+------+
| Action                  | Time |
+-------------------------+------+
| Regolith Initialization | 0.12 |
+-------------------------+------+
| Name Ninja              | 4    |
+-------------------------+------+
| MCCompiled              | 0.1  |
+-------------------------+------+
| Regolith Export         | 0.6  |
+-------------------------+------+
| Total                   | 4.19 |
+-------------------------+------+

SirLich avatar Mar 21 '22 08:03 SirLich