Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
A start of a fix for #42. Seemed like a fun challenge to take a stab at
Added a
--debug
CLI flag to enable debug mode, it'll pass around anIPerformanceStack
(which is meant to be similar to aStack
(eg; a Stacktrace)).The interface mainly adds two methods
When
--debug
is not enabled, it'll pass around an empty object which just calls void methods, so no accidental overhead performing normally:The new logger output with debug on is:
Read file
andRun regex
have nested stacks under them (Just some nice formatting). This way the amount of time spent on each action can be seen, and the average time for each iteration (default:microseconds
).Also fixed an issue where
--help
was actually---help
and--version
was actually---version