-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(cli): add
-r
/--record
and -s
/--sample
On my machine, the CPU usage with 25 ms sampling is over 50% of one core. This kind of load on the CPU (and the corresponding battery drain on mobile devices) is hard to justify as a default. It is better to let the user determine the sampling rate. Let's choose 200 ms as the new default sampling interval. This reduces the load to around 10% of a core on the same machine. memsparkline should still catch most of the same spikes at 200 ms. In programs that run multiple seconds, large memory spikes usually seem to last longer and/or repeat.
- Loading branch information
Showing
3 changed files
with
60 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters