Class Profiler.ProfilingData
- java.lang.Object
-
- org.eclipse.m2m.atl.emftvm.profiler.Profiler.ProfilingData
-
-
Constructor Summary
Constructors Constructor Description ProfilingData(CodeBlock codeBlock, java.lang.reflect.Method method, long duration, double durationRatio, long invocations)Creates a newProfiler.ProfilingData.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CodeBlockgetCodeBlock()Returns theCodeBlock, if applicable.longgetDuration()Returns the duration spent in nanoseconds.doublegetDurationRatio()Returns the duration ratio to the total execution time.longgetInvocations()Returns the amount of invocations.java.lang.reflect.MethodgetMethod()Returns the nativeMethod, if applicable.java.lang.ObjectgetOperation()
-
-
-
Constructor Detail
-
ProfilingData
public ProfilingData(CodeBlock codeBlock, java.lang.reflect.Method method, long duration, double durationRatio, long invocations)
Creates a newProfiler.ProfilingData.- Parameters:
codeBlock- theCodeBlock, if applicablemethod- the nativeMethod, if applicableduration- the duration spent in nanosecondsdurationRatio- the duration ratio to the total execution timeinvocations- the amount of invocations
-
-
Method Detail
-
getCodeBlock
public CodeBlock getCodeBlock()
Returns theCodeBlock, if applicable.- Returns:
- the codeBlock, or
null
-
getMethod
public java.lang.reflect.Method 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
public java.lang.Object getOperation()
- Returns:
getCodeBlock(),getMethod(), ornull
-
-