public class InstanceRecorderElement extends DefaultRecorderElement
| Modifier and Type | Field and Description |
|---|---|
private RecorderElement |
parent
Stores the parent.
|
| Constructor and Description |
|---|
InstanceRecorderElement(MonitoringGroupConfiguration conf,
RecorderElement parent)
Creates an instance.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
addNetBytes(long netInBytes,
long netOutBytes)
Adds an external amount of input or output bytes to this recording
element.
|
(package private) void |
memoryAllocated(long size)
Records an amount of memory allocated by the underlying recording group.
|
(package private) void |
memoryFreed(long size)
Records an amount of memory freed within the underlying recording
group (memory unallocation).
|
(package private) void |
readIo(int bytes,
StreamType type)
Records an amount of bytes read from file or from network.
|
(package private) void |
setCpuTimeTicks(long cpuTimeTicks)
Sets the current CPI time ticks for finishing recording of the entire
program.
|
(package private) boolean |
startTimeRecording(long nanoTime,
long threadTicks,
long threadId)
Start the time recording for this instance.
|
(package private) boolean |
stopTimeRecording(long nanoTime,
long threadTicks,
long threadId)
Stops the time recording for this instance.
|
(package private) void |
timeCorrection(long timeDiff,
long threadTimeFraction,
boolean decrement,
long threadId)
Adds (overhead) time correction information.
|
(package private) void |
writeIo(int bytes,
StreamType type)
Records an amount of bytes written to file or from network.
|
copy, getContributing, getContributing, getContributingSize, getCpuTimeTicks, getFileIn, getFileOut, getIoRead, getIoWrite, getMemAllocated, getMemUse, getNetIn, getNetOut, getStartCpuTime, getStartSystemTime, getSystemTimeTicks, updateMemoryFreedFromJvm, wasRecordedaccountResource, checkConf, createForTest, getConfiguration, getGroupAccounting, getInstanceRecorderElement, getResources, getVarId, hasDebugStates, instanceRecorderElements, instanceRecorderIds, isIndirectAccounting, isVisible, setVarIdprivate RecorderElement parent
InstanceRecorderElement(MonitoringGroupConfiguration conf, RecorderElement parent)
conf - the monitoring group configurationparent - the parentboolean startTimeRecording(long nanoTime,
long threadTicks,
long threadId)
DefaultRecorderElementstartTimeRecording in class DefaultRecorderElementnanoTime - the current system time in nano secondsthreadTicks - the current number of thread ticksthreadId - the identifier of the thread causing the calltrue if recording started on this instance with
this call, false if recording was yet active, e.g. in
case of recursive or reentrant callsboolean stopTimeRecording(long nanoTime,
long threadTicks,
long threadId)
DefaultRecorderElementstopTimeRecording in class DefaultRecorderElementnanoTime - the current system time in nano secondsthreadTicks - the current number of thread ticksthreadId - the identifier of the thread causing the calltrue if recording stopped on this instance with
this call, false if recording is still active, e.g. in
case of recursive or reentrant calls, a negative value causes
stopping time recording for all stored threaded timesvoid timeCorrection(long timeDiff,
long threadTimeFraction,
boolean decrement,
long threadId)
DefaultRecorderElementtimeCorrection in class DefaultRecorderElementtimeDiff - time differencethreadTimeFraction - threaded time fractiondecrement - negative or positive correctionthreadId - the thread id of the causing threadvoid memoryAllocated(long size)
DefaultRecorderElementmemoryAllocated in class DefaultRecorderElementsize - the amount of memory allocatedvoid memoryFreed(long size)
DefaultRecorderElementmemoryFreed in class DefaultRecorderElementsize - the amount of memory freedvoid readIo(int bytes,
StreamType type)
DefaultRecorderElementreadIo in class DefaultRecorderElementbytes - the amount of bytes readtype - the type of stream used for readingvoid writeIo(int bytes,
StreamType type)
DefaultRecorderElementwriteIo in class DefaultRecorderElementbytes - the amount of bytes writtentype - the type of stream used for writingvoid setCpuTimeTicks(long cpuTimeTicks)
DefaultRecorderElementsetCpuTimeTicks in class DefaultRecorderElementcpuTimeTicks - the current CPU time ticksvoid addNetBytes(long netInBytes,
long netOutBytes)
DefaultRecorderElementaddNetBytes in class DefaultRecorderElementnetInBytes - the amount of bytes read from networknetOutBytes - the amount of bytes written to network