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 double
Returns the duration of the given operation.static long
Returns the end memory usage.static long
Returns the launch memory usage.static long
Returns the max memory usage.static long
getMaxMaxMemoryUsage
(ATLOperation atlOp) Returns the max max memory usage.static long
getMaxOutMemoryUsage
(ATLOperation atlOp) Returns the max out memory usage.static long
getMinInMemoryUsage
(ATLOperation atlOp) Returns the min in memory usage.static int
Returns the total instructions.static long
getTotalMemory
(org.eclipse.emf.common.util.EList<ProfilingInstruction> profilingInstructions) Returns the total memory.static double
getTotalTime
(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
-