public class TransactionProfiler extends Object
Modifier and Type | Field and Description |
---|---|
static boolean |
ENABLE_CPU_TIMER |
static boolean |
ENABLE_DISKIO_COUNTER |
static boolean |
ENABLE_NETWORKIO_COUNTER |
Constructor and Description |
---|
TransactionProfiler(TransactionProfiler profiler) |
public static final boolean ENABLE_CPU_TIMER
public static final boolean ENABLE_DISKIO_COUNTER
public static final boolean ENABLE_NETWORKIO_COUNTER
public TransactionProfiler(TransactionProfiler profiler)
public static TransactionProfiler getLocalProfiler()
public static TransactionProfiler takeOut()
public static void setProfiler(TransactionProfiler profiler)
public static int getMessageSize(Object object) throws IOException
IOException
public void reset()
public void incrementDiskIOCount()
public void incrementNetworkInSize(Serializable object)
public void incrementNetworkOutSize(Serializable object)
public void addComponentProfile(Object component, long elapasedTime, long cpuTime, long diskIOCount, long networkIOInSize, long networkIOOutSize, int invocationCount)
public void startComponentProfiler(Object component)
public void stopComponentProfiler(Object component)
public long getComponentTime(Object component)
public long getComponentCpuTime(Object component)
public long getComponentDiskIOCount(Object component)
public long getComponentNetworkInSize(Object component)
public long getComponentNetworkOutSize(Object component)
public int getComponentCount(Object component)
public void startExecution()
public void stopExecution()
public long getExecutionTime()
public long getTotalCpuTime()
public long getTotalDiskIOCount()
public long getNetworkInSize()
public long getNetworkOutSize()
public void addToGlobalStatistics()
Copyright © 2022 VanillaDB Organization. All rights reserved.