Class ProcessProfilerImpl
java.lang.Object
net.officefloor.frame.impl.execute.profile.ProcessProfilerImpl
- All Implemented Interfaces:
ProfiledProcessState,ProcessProfiler
ProcessProfiler implementation.- Author:
- Daniel Sagenschneider
-
Constructor Summary
ConstructorsConstructorDescriptionProcessProfilerImpl(Profiler profiler, ProcessState process, long startTimestampMilliseconds, long startTimestampNanoseconds) Initiate. -
Method Summary
Modifier and TypeMethodDescriptionaddThreadState(ThreadState threadState) Adds aThreadStateto be profiled.Obtains theProfiledThreadStateinstances.longObtains the start time stamp.longObtains the start time stamp.voidInvoked once theProcessStateis complete.
-
Constructor Details
-
ProcessProfilerImpl
public ProcessProfilerImpl(Profiler profiler, ProcessState process, long startTimestampMilliseconds, long startTimestampNanoseconds) Initiate.- Parameters:
profiler-Profiler.process-ProcessStatebeing profiled.startTimestampMilliseconds- Start time stamp in milliseconds.startTimestampNanoseconds- Start time stamp in nanoseconds.
-
-
Method Details
-
addThreadState
Description copied from interface:ProcessProfilerAdds aThreadStateto be profiled.- Specified by:
addThreadStatein interfaceProcessProfiler- Parameters:
threadState-ThreadState.- Returns:
ThreadStateto be profiled.
-
processStateCompleted
public void processStateCompleted()Description copied from interface:ProcessProfilerInvoked once theProcessStateis complete.- Specified by:
processStateCompletedin interfaceProcessProfiler
-
getProfiledThreadStates
Description copied from interface:ProfiledProcessStateObtains theProfiledThreadStateinstances.- Specified by:
getProfiledThreadStatesin interfaceProfiledProcessState- Returns:
ProfiledThreadStateinstances.
-
getStartTimestampMilliseconds
public long getStartTimestampMilliseconds()Description copied from interface:ProfiledProcessStateObtains the start time stamp.- Specified by:
getStartTimestampMillisecondsin interfaceProfiledProcessState- Returns:
- Start time stamp in milliseconds.
-
getStartTimestampNanoseconds
public long getStartTimestampNanoseconds()Description copied from interface:ProfiledProcessStateObtains the start time stamp.- Specified by:
getStartTimestampNanosecondsin interfaceProfiledProcessState- Returns:
- Start time stamp in nanoseconds.
-