Package io.deephaven.util.profiling
Class BaselineThreadMXBeanThreadProfiler
java.lang.Object
io.deephaven.util.profiling.ThreadMXBeanThreadProfiler<ThreadMXBean>
io.deephaven.util.profiling.BaselineThreadMXBeanThreadProfiler
- All Implemented Interfaces:
ThreadProfiler
public final class BaselineThreadMXBeanThreadProfiler
extends ThreadMXBeanThreadProfiler<ThreadMXBean>
A concrete generic
ThreadMXBean
-based ThreadProfiler
implementation, with support for baseline
measurements available on all JVMs only.-
Field Summary
Fields inherited from class io.deephaven.util.profiling.ThreadMXBeanThreadProfiler
threadMXBean
Fields inherited from interface io.deephaven.util.profiling.ThreadProfiler
CPU_PROFILING_ENABLED, DEFAULT, MEMORY_PROFILING_ENABLED
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal long
Get the approximate number of total bytes allocated by the current thread.final boolean
Check if memory profiling (e.g.Methods inherited from class io.deephaven.util.profiling.ThreadMXBeanThreadProfiler
cpuProfilingAvailable, getCurrentThreadCpuTime, getCurrentThreadUserTime
-
Constructor Details
-
BaselineThreadMXBeanThreadProfiler
public BaselineThreadMXBeanThreadProfiler()
-
-
Method Details
-
memoryProfilingAvailable
public final boolean memoryProfilingAvailable()Description copied from interface:ThreadProfiler
Check if memory profiling (e.g.ThreadProfiler.getCurrentThreadAllocatedBytes()
) is available (supported and enabled).- Returns:
- Whether memory profiling is available.
-
getCurrentThreadAllocatedBytes
public final long getCurrentThreadAllocatedBytes()Description copied from interface:ThreadProfiler
Get the approximate number of total bytes allocated by the current thread.- Returns:
- The approximate number of total bytes allocated by the current thread, or
QueryConstants.NULL_LONG
if unavailable.
-