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
ProcessProfiler
implementation.- 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 ThreadProfiler
addThreadState(ThreadState threadState)
Adds aThreadState
to be profiled.java.util.List<ProfiledThreadState>
getProfiledThreadStates()
Obtains theProfiledThreadState
instances.long
getStartTimestampMilliseconds()
Obtains the start time stamp.long
getStartTimestampNanoseconds()
Obtains the start time stamp.void
processStateCompleted()
Invoked once theProcessState
is complete.
-
-
-
Constructor Detail
-
ProcessProfilerImpl
public ProcessProfilerImpl(Profiler profiler, ProcessState process, long startTimestampMilliseconds, long startTimestampNanoseconds)
Initiate.- Parameters:
profiler
-Profiler
.process
-ProcessState
being 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:ProcessProfiler
Adds aThreadState
to be profiled.- Specified by:
addThreadState
in interfaceProcessProfiler
- Parameters:
threadState
-ThreadState
.- Returns:
ThreadState
to be profiled.
-
processStateCompleted
public void processStateCompleted()
Description copied from interface:ProcessProfiler
Invoked once theProcessState
is complete.- Specified by:
processStateCompleted
in interfaceProcessProfiler
-
getProfiledThreadStates
public java.util.List<ProfiledThreadState> getProfiledThreadStates()
Description copied from interface:ProfiledProcessState
Obtains theProfiledThreadState
instances.- Specified by:
getProfiledThreadStates
in interfaceProfiledProcessState
- Returns:
ProfiledThreadState
instances.
-
getStartTimestampMilliseconds
public long getStartTimestampMilliseconds()
Description copied from interface:ProfiledProcessState
Obtains the start time stamp.- Specified by:
getStartTimestampMilliseconds
in interfaceProfiledProcessState
- Returns:
- Start time stamp in milliseconds.
-
getStartTimestampNanoseconds
public long getStartTimestampNanoseconds()
Description copied from interface:ProfiledProcessState
Obtains the start time stamp.- Specified by:
getStartTimestampNanoseconds
in interfaceProfiledProcessState
- Returns:
- Start time stamp in nanoseconds.
-
-