diff options
author | Luck <git@lucko.me> | 2018-06-01 21:10:48 +0100 |
---|---|---|
committer | Luck <git@lucko.me> | 2018-06-01 21:10:48 +0100 |
commit | 85ea74bfc414ee58136709c8dee6e59770c9b98d (patch) | |
tree | 421d9553c8abea495bc003ffdbbd0b4208efadb5 /common/src/main | |
parent | dca7407ed4ca955b7b692473a6a85263dc6a09f0 (diff) | |
download | spark-85ea74bfc414ee58136709c8dee6e59770c9b98d.tar.gz spark-85ea74bfc414ee58136709c8dee6e59770c9b98d.tar.bz2 spark-85ea74bfc414ee58136709c8dee6e59770c9b98d.zip |
Change default sampling interval to 4
Diffstat (limited to 'common/src/main')
-rw-r--r-- | common/src/main/java/me/lucko/spark/common/CommandHandler.java | 2 | ||||
-rw-r--r-- | common/src/main/java/me/lucko/spark/profiler/SamplerBuilder.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/common/src/main/java/me/lucko/spark/common/CommandHandler.java b/common/src/main/java/me/lucko/spark/common/CommandHandler.java index ed188ea..898bba7 100644 --- a/common/src/main/java/me/lucko/spark/common/CommandHandler.java +++ b/common/src/main/java/me/lucko/spark/common/CommandHandler.java @@ -131,7 +131,7 @@ public abstract class CommandHandler<T> { int intervalMillis = parseInt(arguments, "interval", "i"); if (intervalMillis <= 0) { - intervalMillis = 10; + intervalMillis = 4; } Set<String> threads = Sets.union(arguments.get("thread"), arguments.get("t")); diff --git a/common/src/main/java/me/lucko/spark/profiler/SamplerBuilder.java b/common/src/main/java/me/lucko/spark/profiler/SamplerBuilder.java index 3d304d6..7db0515 100644 --- a/common/src/main/java/me/lucko/spark/profiler/SamplerBuilder.java +++ b/common/src/main/java/me/lucko/spark/profiler/SamplerBuilder.java @@ -8,7 +8,7 @@ import java.util.concurrent.TimeUnit; */ public class SamplerBuilder { - private int samplingInterval = 10; + private int samplingInterval = 4; private long timeout = -1; private ThreadDumper threadDumper = ThreadDumper.ALL; private ThreadGrouper threadGrouper = ThreadGrouper.BY_NAME; |