Class PerformanceMonitor
- java.lang.Object
-
- org.gcube.resourcemanagement.support.shared.util.PerformanceMonitor
-
public class PerformanceMonitor extends Object
This class has been introduced to internally check the performance of method calls and operations in general.- Author:
- Daniele Strollo (ISTI-CNR)
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StackTraceElementgetCaller()static PerformanceMonitorgetClock(Class<?> owner)static PerformanceMonitorgetClock(String ownerID)StringgetOwnerID()voidstart()floatstop(boolean relative)
-
-
-
Field Detail
-
ownerID
public String ownerID
-
-
Method Detail
-
getClock
public static PerformanceMonitor getClock(String ownerID)
-
getClock
public static PerformanceMonitor getClock(Class<?> owner)
-
start
public final void start()
-
stop
public final float stop(boolean relative)
-
getCaller
public final StackTraceElement getCaller()
-
getOwnerID
public final String getOwnerID()
-
-