Class ProfilingModelUtils
java.lang.Object
org.eclipse.m2m.atl.profiler.core.util.ProfilingModelUtils
Class utility to help about statistical operations.
-
Method Summary
Modifier and TypeMethodDescriptionstatic doubleReturns the duration of the given operation.static longReturns the end memory usage.static longReturns the launch memory usage.static longReturns the max memory usage.static longgetMaxMaxMemoryUsage(ATLOperation atlOp) Returns the max max memory usage.static longgetMaxOutMemoryUsage(ATLOperation atlOp) Returns the max out memory usage.static longgetMinInMemoryUsage(ATLOperation atlOp) Returns the min in memory usage.static intReturns the total instructions.static longgetTotalMemory(org.eclipse.emf.common.util.EList<ProfilingInstruction> profilingInstructions) Returns the total memory.static doublegetTotalTime(org.eclipse.emf.common.util.EList<ProfilingInstruction> profilingInstructions) Returns the total time.
-
Method Details
-
getDuration
Returns the duration of the given operation.- Parameters:
op- the operation- Returns:
- the duration of the given operation
-
getLaunchKbytesMemUsage
Returns the launch memory usage.- Parameters:
op- the operation- Returns:
- the memory usage
-
getEndKbytesMemUsage
Returns the end memory usage.- Parameters:
op- the operation- Returns:
- the memory usage
-
getMaxKbytesMemUsage
Returns the max memory usage.- Parameters:
op- the operation- Returns:
- the memory usage
-
getTotalTime
public static double getTotalTime(org.eclipse.emf.common.util.EList<ProfilingInstruction> profilingInstructions) Returns the total time.- Parameters:
profilingInstructions- the profiling instructions- Returns:
- the total time
-
getTotalInstruction
Returns the total instructions.- Parameters:
op- the atl operation- Returns:
- the total instructions
-
getTotalMemory
public static long getTotalMemory(org.eclipse.emf.common.util.EList<ProfilingInstruction> profilingInstructions) Returns the total memory.- Parameters:
profilingInstructions- the profiling instructions- Returns:
- the total memory
-
getMinInMemoryUsage
Returns the min in memory usage.- Parameters:
atlOp- the atl operation- Returns:
- the min in memory usage
-
getMaxOutMemoryUsage
Returns the max out memory usage.- Parameters:
atlOp- the atl operation- Returns:
- the max out memory usage
-
getMaxMaxMemoryUsage
Returns the max max memory usage.- Parameters:
atlOp- the atl operation- Returns:
- the max max memory usage
-