Package org.gradle.profiler
Interface ProfilerController
public interface ProfilerController
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidTells the profiler to start collecting data (again).voidConnects the profiler to the daemon and does any other one-time setup work.voidstopRecording(String pid) Tells the profiler to stop collecting data for now, e.g.voidEnds the profiling session, writing the collected results to disk and disconnecting the profiler from the daemon.
-
Field Details
-
EMPTY
-
-
Method Details
-
startSession
Connects the profiler to the daemon and does any other one-time setup work. The profiler should not start collecting data yet. If the profiler cannot connect without starting data collection, it should defer startup tostartRecording()instead.- Throws:
IOExceptionInterruptedException
-
startRecording
Tells the profiler to start collecting data (again). Profilers may chose to throw an exception if they don't support multiple start/stop operations.- Throws:
IOExceptionInterruptedException
-
stopRecording
Tells the profiler to stop collecting data for now, e.g. so it doesn't profile cleanup tasks. If the data collection can only be stopped by stopping the session, the profiler should implement this as a no-op and throw an exception whenstartRecording()is called another time.- Throws:
IOExceptionInterruptedException
-
stopSession
Ends the profiling session, writing the collected results to disk and disconnecting the profiler from the daemon.- Throws:
IOExceptionInterruptedException
-