Class Profiler.ProfilingData
java.lang.Object
org.eclipse.m2m.atl.emftvm.profiler.Profiler.ProfilingData
- Enclosing class:
- Profiler
-
Constructor Summary
ConstructorDescriptionProfilingData
(CodeBlock codeBlock, Method method, long duration, double durationRatio, long invocations) Creates a newProfiler.ProfilingData
. -
Method Summary
-
Constructor Details
-
ProfilingData
public ProfilingData(CodeBlock codeBlock, Method method, long duration, double durationRatio, long invocations) Creates a newProfiler.ProfilingData
.
-
-
Method Details
-
getCodeBlock
Returns theCodeBlock
, if applicable.- Returns:
- the codeBlock, or
null
-
getMethod
Returns the nativeMethod
, if applicable.- Returns:
- the method, or
null
-
getDuration
public long getDuration()Returns the duration spent in nanoseconds.- Returns:
- the duration
-
getDurationRatio
public double getDurationRatio()Returns the duration ratio to the total execution time.- Returns:
- the durationRatio
-
getInvocations
public long getInvocations()Returns the amount of invocations.- Returns:
- the invocations
-
getOperation
- Returns:
getCodeBlock()
,getMethod()
, ornull
-