aboutsummaryrefslogtreecommitdiff
path: root/spark-common/src/main/java/me/lucko/spark/sampler/Sampler.java
diff options
context:
space:
mode:
Diffstat (limited to 'spark-common/src/main/java/me/lucko/spark/sampler/Sampler.java')
-rw-r--r--spark-common/src/main/java/me/lucko/spark/sampler/Sampler.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/spark-common/src/main/java/me/lucko/spark/sampler/Sampler.java b/spark-common/src/main/java/me/lucko/spark/sampler/Sampler.java
index d78b3fd..3a9a271 100644
--- a/spark-common/src/main/java/me/lucko/spark/sampler/Sampler.java
+++ b/spark-common/src/main/java/me/lucko/spark/sampler/Sampler.java
@@ -23,7 +23,6 @@ package me.lucko.spark.sampler;
import com.google.common.util.concurrent.ThreadFactoryBuilder;
import com.google.gson.stream.JsonWriter;
-
import me.lucko.spark.sampler.aggregator.DataAggregator;
import me.lucko.spark.sampler.aggregator.SimpleDataAggregator;
import me.lucko.spark.sampler.aggregator.TickedDataAggregator;
@@ -130,7 +129,7 @@ public class Sampler implements Runnable {
return;
}
- Iterable<ThreadInfo> threadDumps = this.threadDumper.dumpThreads(this.threadBean);
+ ThreadInfo[] threadDumps = this.threadDumper.dumpThreads(this.threadBean);
for (ThreadInfo threadInfo : threadDumps) {
String threadName = threadInfo.getThreadName();
StackTraceElement[] stack = threadInfo.getStackTrace();