@ParametersAreNonnullByDefault public final class FastStackCollector extends Object implements ISampler
| Modifier and Type | Class and Description |
|---|---|
static class |
FastStackCollector.ThreadNamesPredicate |
| Constructor and Description |
|---|
FastStackCollector(boolean collectRunnableThreadsOnly,
boolean collectForMain,
String... xtraIgnoredThreads) |
FastStackCollector(boolean collectRunnableThreadsOnly,
boolean collectForMain,
Thread[] ignored,
String... xtraIgnoredThreads) |
FastStackCollector(boolean collectForMain,
String... xtraIgnoredThreads) |
FastStackCollector(Predicate<Thread> threadFilter,
int maxNrSampledThreads) |
| Modifier and Type | Method and Description |
|---|---|
static Predicate<Thread> |
createNameBasedFilter(boolean collectRunnableThreadsOnly,
boolean collectForMain,
Thread[] ignored,
String[] xtraIgnoredThreads) |
static void |
dumpToPrintStream(PrintStream stream)
Deprecated.
use Threads.dumpToPrintStream
|
Map<String,SampleNode> |
getCollections() |
Map<String,SampleNode> |
getCollectionsAndReset() |
static StackTraceElement[][] |
getStackTraces(Thread... threads)
Deprecated.
use Threads.getStackTraces
|
static Thread[] |
getThreads()
Deprecated.
use Threads.getThreads
|
void |
sample() |
String |
toString() |
public FastStackCollector(boolean collectForMain,
String... xtraIgnoredThreads)
public FastStackCollector(boolean collectRunnableThreadsOnly,
boolean collectForMain,
String... xtraIgnoredThreads)
public FastStackCollector(boolean collectRunnableThreadsOnly,
boolean collectForMain,
Thread[] ignored,
String... xtraIgnoredThreads)
public static Predicate<Thread> createNameBasedFilter(boolean collectRunnableThreadsOnly, boolean collectForMain, Thread[] ignored, String[] xtraIgnoredThreads)
@Deprecated public static Thread[] getThreads()
@Deprecated public static StackTraceElement[][] getStackTraces(Thread... threads)
@Deprecated public static void dumpToPrintStream(PrintStream stream)
public Map<String,SampleNode> getCollectionsAndReset()
getCollectionsAndReset in interface ISamplerpublic Map<String,SampleNode> getCollections()
getCollections in interface ISamplerCopyright © 2018 SPF4J. All rights reserved.