diff options
author | Luck <git@lucko.me> | 2020-04-20 22:05:32 +0100 |
---|---|---|
committer | Luck <git@lucko.me> | 2020-04-20 22:05:32 +0100 |
commit | 338a6ac61271c7c9af56e076866a5edf33e558cc (patch) | |
tree | 9b57ae6fc33746433c3169923d915a2060129223 /spark-common/src/main/java/me/lucko | |
parent | d927d105a8525c53dfc6213f9ca42f03b7fc46ac (diff) | |
download | spark-338a6ac61271c7c9af56e076866a5edf33e558cc.tar.gz spark-338a6ac61271c7c9af56e076866a5edf33e558cc.tar.bz2 spark-338a6ac61271c7c9af56e076866a5edf33e558cc.zip |
Revert "Set default sampling interval to 3ms"
lol changed my mind
This reverts commit d927d105a8525c53dfc6213f9ca42f03b7fc46ac.
Diffstat (limited to 'spark-common/src/main/java/me/lucko')
-rw-r--r-- | spark-common/src/main/java/me/lucko/spark/common/command/modules/SamplerModule.java | 2 | ||||
-rw-r--r-- | spark-common/src/main/java/me/lucko/spark/common/sampler/SamplerBuilder.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/spark-common/src/main/java/me/lucko/spark/common/command/modules/SamplerModule.java b/spark-common/src/main/java/me/lucko/spark/common/command/modules/SamplerModule.java index 68f1ccc..b2b7a16 100644 --- a/spark-common/src/main/java/me/lucko/spark/common/command/modules/SamplerModule.java +++ b/spark-common/src/main/java/me/lucko/spark/common/command/modules/SamplerModule.java @@ -142,7 +142,7 @@ public class SamplerModule implements CommandModule { double intervalMillis = arguments.doubleFlag("interval"); if (intervalMillis <= 0) { - intervalMillis = 3; + intervalMillis = 4; } boolean ignoreSleeping = arguments.boolFlag("ignore-sleeping"); diff --git a/spark-common/src/main/java/me/lucko/spark/common/sampler/SamplerBuilder.java b/spark-common/src/main/java/me/lucko/spark/common/sampler/SamplerBuilder.java index ba2c091..ff4c6df 100644 --- a/spark-common/src/main/java/me/lucko/spark/common/sampler/SamplerBuilder.java +++ b/spark-common/src/main/java/me/lucko/spark/common/sampler/SamplerBuilder.java @@ -29,7 +29,7 @@ import java.util.concurrent.TimeUnit; */ public class SamplerBuilder { - private double samplingInterval = 3; // milliseconds + private double samplingInterval = 4; // milliseconds private boolean ignoreSleeping = false; private long timeout = -1; private ThreadDumper threadDumper = ThreadDumper.ALL; |