Skip to content

Commit

Permalink
Adds -a option to allocate a thowaway object on every sample
Browse files Browse the repository at this point in the history
  • Loading branch information
giltene committed Jun 13, 2018
1 parent e2a372d commit 394c586
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/org/jhiccup/HiccupMeter.java
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,8 @@ public HiccupMeterConfiguration(final String[] args, String defaultLogFileName)
verbose = true;
} else if (args[i].equals("-0")) {
startTimeAtZero = true;
} else if (args[i].equals("-a")) {
allocateObjects = true;
} else if (args[i].equals("-p")) {
attachToProcess = true;
pidOfProcessToAttachTo = args[++i];
Expand Down Expand Up @@ -353,6 +355,7 @@ public HiccupMeterConfiguration(final String[] args, String defaultLogFileName)
" [-d startDelayMs] Delay the beginning of hiccup measurement by\n" +
" startDelayMs milliseconds [default 0]\n" +
" [-0] Start timestamps at 0 (as opposed to at JVM runtime at start point)\n" +
" [-a] Allocate a throwaway object on every sample [default false]\n" +
" [-i reportingIntervalMs] Set reporting interval [default 5000]\n" +
" [-r resolutionMs] Set sampling resolution in milliseconds [default 1]\n" +
" [-t runTimeMs] Limit measurement time [default 0, for infinite]\n" +
Expand Down

0 comments on commit 394c586

Please sign in to comment.