@Deprecated public class StackSampler extends Object
Constructor and Description |
---|
StackSampler()
Deprecated.
Constructs a new StackSampler and starts the background thread
responsible for sampling the stack trace.
|
Modifier and Type | Method and Description |
---|---|
@Nullable StackTraceElement[] |
getAndReset()
Deprecated.
Retrieves the latest sampled stack trace and resets the internal
state for subsequent sampling.
|
void |
stop()
Deprecated.
Stops the stack sampling by interrupting the background thread.
|
void |
thread(Thread thread)
Deprecated.
Sets the thread to be sampled.
|
public StackSampler()
public void stop()
public void thread(Thread thread)
thread
- the target thread whose stack trace should be sampled.@Nullable public @Nullable StackTraceElement[] getAndReset()
Copyright © 2023. All rights reserved.