aboutsummaryrefslogtreecommitdiff
path: root/spark-common/src/main/java/me
diff options
context:
space:
mode:
authorLuck <git@lucko.me>2020-04-20 22:04:21 +0100
committerLuck <git@lucko.me>2020-04-20 22:04:21 +0100
commitd927d105a8525c53dfc6213f9ca42f03b7fc46ac (patch)
treed77b714fcd62e368e5c9b4392faebf5b29769dce /spark-common/src/main/java/me
parentefa16aacebe904a5052f9946652e22bd453e39bb (diff)
downloadspark-d927d105a8525c53dfc6213f9ca42f03b7fc46ac.tar.gz
spark-d927d105a8525c53dfc6213f9ca42f03b7fc46ac.tar.bz2
spark-d927d105a8525c53dfc6213f9ca42f03b7fc46ac.zip
Set default sampling interval to 3ms
Diffstat (limited to 'spark-common/src/main/java/me')
-rw-r--r--spark-common/src/main/java/me/lucko/spark/common/command/modules/SamplerModule.java2
-rw-r--r--spark-common/src/main/java/me/lucko/spark/common/sampler/SamplerBuilder.java2
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 b2b7a16..68f1ccc 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 = 4;
+ intervalMillis = 3;
}
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 ff4c6df..ba2c091 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 = 4; // milliseconds
+ private double samplingInterval = 3; // milliseconds
private boolean ignoreSleeping = false;
private long timeout = -1;
private ThreadDumper threadDumper = ThreadDumper.ALL;