public interface ProfilerController
| Modifier and Type | Field and Description |
|---|---|
static ProfilerController |
EMPTY |
| Modifier and Type | Method and Description |
|---|---|
void |
startRecording()
Tells the profiler to start collecting data (again).
|
void |
startSession()
Connects the profiler to the daemon and does any other one-time setup work.
|
void |
stopRecording(java.lang.String pid)
Tells the profiler to stop collecting data for now, e.g.
|
void |
stopSession()
Ends the profiling session, writing the collected results to disk
and disconnecting the profiler from the daemon.
|
static final ProfilerController EMPTY
void startSession()
throws java.io.IOException,
java.lang.InterruptedException
startRecording()
instead.java.io.IOExceptionjava.lang.InterruptedExceptionvoid startRecording()
throws java.io.IOException,
java.lang.InterruptedException
java.io.IOExceptionjava.lang.InterruptedExceptionvoid stopRecording(java.lang.String pid)
throws java.io.IOException,
java.lang.InterruptedException
startRecording() is called another
time.java.io.IOExceptionjava.lang.InterruptedExceptionvoid stopSession()
throws java.io.IOException,
java.lang.InterruptedException
java.io.IOExceptionjava.lang.InterruptedException