Class BasePerformanceEntry
java.lang.Object
io.deephaven.engine.table.impl.perf.BasePerformanceEntry
- All Implemented Interfaces:
LogOutputAppendable
- Direct Known Subclasses:
PerformanceEntry
,QueryPerformanceNugget
A smaller entry that simply records usage data, meant for aggregating into the larger entry.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
accumulate
(@NotNull BasePerformanceEntry entry) Accumulate the values from another entry into this one.long
Get the aggregate allocated memory in bytes.long
Get the aggregate cpu time in nanoseconds.long
Get allocated pooled/reusable memory attributed to the instrumented operation in bytes.long
Get the aggregate usage in nanoseconds.long
Get the aggregate cpu user time in nanoseconds.void
void
-
Constructor Details
-
BasePerformanceEntry
public BasePerformanceEntry()
-
-
Method Details
-
onBaseEntryStart
public void onBaseEntryStart() -
onBaseEntryEnd
public void onBaseEntryEnd() -
getUsageNanos
public long getUsageNanos()Get the aggregate usage in nanoseconds. This getter should be called by exclusive owners of the entry, and never concurrently with mutators.- Returns:
- total wall clock time in nanos
-
getCpuNanos
public long getCpuNanos()Get the aggregate cpu time in nanoseconds. This getter should be called by exclusive owners of the entry, and never concurrently with mutators.- Returns:
- total cpu time in nanos
-
getUserCpuNanos
public long getUserCpuNanos()Get the aggregate cpu user time in nanoseconds. This getter should be called by exclusive owners of the entry, and never concurrently with mutators.- Returns:
- total cpu user time in nanos
-
getAllocatedBytes
public long getAllocatedBytes()Get the aggregate allocated memory in bytes. This getter should be called by exclusive owners of the entry, and never concurrently with mutators.- Returns:
- The bytes of allocated memory attributed to the instrumented operation.
-
getPoolAllocatedBytes
public long getPoolAllocatedBytes()Get allocated pooled/reusable memory attributed to the instrumented operation in bytes. This getter should be called by exclusive owners of the entry, and never concurrently with mutators.- Returns:
- total pool allocated memory in bytes
-
append
- Specified by:
append
in interfaceLogOutputAppendable
-
accumulate
Accumulate the values from another entry into this one. The provided entry will not be mutated.- Parameters:
entry
- the entry to accumulate
-