This adds a --cpuprofile command line option which causes aminal to generate a Go CPU profile file. This is useful for investigating performance issues.
Type of change
New feature (non-breaking change which adds functionality)
How Has This Been Tested?
Checked that CPU profile is generated when --cpuprofile is passed and isn't generated when the argument isn't passed.
Test Configuration:
OS: Linux
OS version: Ubuntu 18.04
Go version: 1.12
Checklist:
[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[ ] Any dependent changes have been merged and published in downstream modules
Description
This adds a
--cpuprofile
command line option which causes aminal to generate a Go CPU profile file. This is useful for investigating performance issues.Type of change
How Has This Been Tested?
Checked that CPU profile is generated when
--cpuprofile
is passed and isn't generated when the argument isn't passed.Test Configuration:
Checklist: