aboutsummaryrefslogtreecommitdiff
path: root/common/src/main
diff options
context:
space:
mode:
authorLuck <git@lucko.me>2018-06-01 21:10:48 +0100
committerLuck <git@lucko.me>2018-06-01 21:10:48 +0100
commit85ea74bfc414ee58136709c8dee6e59770c9b98d (patch)
tree421d9553c8abea495bc003ffdbbd0b4208efadb5 /common/src/main
parentdca7407ed4ca955b7b692473a6a85263dc6a09f0 (diff)
downloadspark-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.java2
-rw-r--r--common/src/main/java/me/lucko/spark/profiler/SamplerBuilder.java2
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;