Class ProcessProfilerImpl
- java.lang.Object
-
- net.officefloor.frame.impl.execute.profile.ProcessProfilerImpl
-
- All Implemented Interfaces:
ProfiledProcessState,ProcessProfiler
public class ProcessProfilerImpl extends java.lang.Object implements ProcessProfiler, ProfiledProcessState
ProcessProfilerimplementation.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description ProcessProfilerImpl(Profiler profiler, ProcessState process, long startTimestampMilliseconds, long startTimestampNanoseconds)Initiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ThreadProfileraddThreadState(ThreadState threadState)Adds aThreadStateto be profiled.java.util.List<ProfiledThreadState>getProfiledThreadStates()Obtains theProfiledThreadStateinstances.longgetStartTimestampMilliseconds()Obtains the start time stamp.longgetStartTimestampNanoseconds()Obtains the start time stamp.voidprocessStateCompleted()Invoked once theProcessStateis complete.
-
-
-
Constructor Detail
-
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 Detail
-
addThreadState
public ThreadProfiler addThreadState(ThreadState threadState)
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
public java.util.List<ProfiledThreadState> 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.
-
-