use of com.navercorp.pinpoint.common.server.bo.codec.stat.header.BitCountingHeaderEncoder in project pinpoint by naver.
the class CpuLoadCodecV1 method encodeDataPoints.
private void encodeDataPoints(Buffer valueBuffer, StrategyAnalyzer<Long> jvmCpuLoadStrategyAnalyzer, StrategyAnalyzer<Long> systemCpuLoadStrategyAnalyzer) {
// encode header
AgentStatHeaderEncoder headerEncoder = new BitCountingHeaderEncoder();
headerEncoder.addCode(jvmCpuLoadStrategyAnalyzer.getBestStrategy().getCode());
headerEncoder.addCode(systemCpuLoadStrategyAnalyzer.getBestStrategy().getCode());
final byte[] header = headerEncoder.getHeader();
valueBuffer.putPrefixedBytes(header);
// encode values
this.codec.encodeValues(valueBuffer, jvmCpuLoadStrategyAnalyzer.getBestStrategy(), jvmCpuLoadStrategyAnalyzer.getValues());
this.codec.encodeValues(valueBuffer, systemCpuLoadStrategyAnalyzer.getBestStrategy(), systemCpuLoadStrategyAnalyzer.getValues());
}
use of com.navercorp.pinpoint.common.server.bo.codec.stat.header.BitCountingHeaderEncoder in project pinpoint by naver.
the class JvmGcCodecV1 method encodeDataPoints.
private void encodeDataPoints(Buffer valueBuffer, StrategyAnalyzer<Long> heapUsedStrategyAnalyzer, StrategyAnalyzer<Long> heapMaxStrategyAnalyzer, StrategyAnalyzer<Long> nonHeapUsedStrategyAnalyzer, StrategyAnalyzer<Long> nonHeapMaxStrategyAnalyzer, StrategyAnalyzer<Long> gcOldCountStrategyAnalyzer, StrategyAnalyzer<Long> gcOldTimeStrategyAnalyzer) {
// encode header
AgentStatHeaderEncoder headerEncoder = new BitCountingHeaderEncoder();
headerEncoder.addCode(heapUsedStrategyAnalyzer.getBestStrategy().getCode());
headerEncoder.addCode(heapMaxStrategyAnalyzer.getBestStrategy().getCode());
headerEncoder.addCode(nonHeapUsedStrategyAnalyzer.getBestStrategy().getCode());
headerEncoder.addCode(nonHeapMaxStrategyAnalyzer.getBestStrategy().getCode());
headerEncoder.addCode(gcOldCountStrategyAnalyzer.getBestStrategy().getCode());
headerEncoder.addCode(gcOldTimeStrategyAnalyzer.getBestStrategy().getCode());
final byte[] header = headerEncoder.getHeader();
valueBuffer.putPrefixedBytes(header);
// encode values
this.codec.encodeValues(valueBuffer, heapUsedStrategyAnalyzer.getBestStrategy(), heapUsedStrategyAnalyzer.getValues());
this.codec.encodeValues(valueBuffer, heapMaxStrategyAnalyzer.getBestStrategy(), heapMaxStrategyAnalyzer.getValues());
this.codec.encodeValues(valueBuffer, nonHeapUsedStrategyAnalyzer.getBestStrategy(), nonHeapUsedStrategyAnalyzer.getValues());
this.codec.encodeValues(valueBuffer, nonHeapMaxStrategyAnalyzer.getBestStrategy(), nonHeapMaxStrategyAnalyzer.getValues());
this.codec.encodeValues(valueBuffer, gcOldCountStrategyAnalyzer.getBestStrategy(), gcOldCountStrategyAnalyzer.getValues());
this.codec.encodeValues(valueBuffer, gcOldTimeStrategyAnalyzer.getBestStrategy(), gcOldTimeStrategyAnalyzer.getValues());
}
use of com.navercorp.pinpoint.common.server.bo.codec.stat.header.BitCountingHeaderEncoder in project pinpoint by naver.
the class JvmGcDetailedCodecV1 method encodeDataPoints.
private void encodeDataPoints(Buffer valueBuffer, StrategyAnalyzer<Long> gcNewCountStrategyAnalyzer, StrategyAnalyzer<Long> gcNewTimeStrategyAnalyzer, StrategyAnalyzer<Long> codeCacheUsedStrategyAnalyzer, StrategyAnalyzer<Long> newGenUsedStrategyAnalyzer, StrategyAnalyzer<Long> oldGenUsedStrategyAnalyzer, StrategyAnalyzer<Long> survivorSpaceUsedStrategyAnalyzer, StrategyAnalyzer<Long> permGenUsedStrategyAnalyzer, StrategyAnalyzer<Long> metaspaceUsedStrategyAnalyzer) {
// encode header
AgentStatHeaderEncoder headerEncoder = new BitCountingHeaderEncoder();
headerEncoder.addCode(gcNewCountStrategyAnalyzer.getBestStrategy().getCode());
headerEncoder.addCode(gcNewTimeStrategyAnalyzer.getBestStrategy().getCode());
headerEncoder.addCode(codeCacheUsedStrategyAnalyzer.getBestStrategy().getCode());
headerEncoder.addCode(newGenUsedStrategyAnalyzer.getBestStrategy().getCode());
headerEncoder.addCode(oldGenUsedStrategyAnalyzer.getBestStrategy().getCode());
headerEncoder.addCode(survivorSpaceUsedStrategyAnalyzer.getBestStrategy().getCode());
headerEncoder.addCode(permGenUsedStrategyAnalyzer.getBestStrategy().getCode());
headerEncoder.addCode(metaspaceUsedStrategyAnalyzer.getBestStrategy().getCode());
final byte[] header = headerEncoder.getHeader();
valueBuffer.putPrefixedBytes(header);
// encode values
this.codec.encodeValues(valueBuffer, gcNewCountStrategyAnalyzer.getBestStrategy(), gcNewCountStrategyAnalyzer.getValues());
this.codec.encodeValues(valueBuffer, gcNewTimeStrategyAnalyzer.getBestStrategy(), gcNewTimeStrategyAnalyzer.getValues());
this.codec.encodeValues(valueBuffer, codeCacheUsedStrategyAnalyzer.getBestStrategy(), codeCacheUsedStrategyAnalyzer.getValues());
this.codec.encodeValues(valueBuffer, newGenUsedStrategyAnalyzer.getBestStrategy(), newGenUsedStrategyAnalyzer.getValues());
this.codec.encodeValues(valueBuffer, oldGenUsedStrategyAnalyzer.getBestStrategy(), oldGenUsedStrategyAnalyzer.getValues());
this.codec.encodeValues(valueBuffer, survivorSpaceUsedStrategyAnalyzer.getBestStrategy(), survivorSpaceUsedStrategyAnalyzer.getValues());
this.codec.encodeValues(valueBuffer, permGenUsedStrategyAnalyzer.getBestStrategy(), permGenUsedStrategyAnalyzer.getValues());
this.codec.encodeValues(valueBuffer, metaspaceUsedStrategyAnalyzer.getBestStrategy(), metaspaceUsedStrategyAnalyzer.getValues());
}
use of com.navercorp.pinpoint.common.server.bo.codec.stat.header.BitCountingHeaderEncoder in project pinpoint by naver.
the class ActiveTraceCodecV2 method encodeDataPoints.
private void encodeDataPoints(Buffer valueBuffer, StrategyAnalyzer<Short> versionStrategyAnalyzer, StrategyAnalyzer<Integer> schemaTypeStrategyAnalyzer, StrategyAnalyzer<Integer> fastTraceCountsStrategyAnalyzer, StrategyAnalyzer<Integer> normalTraceCountsStrategyAnalyzer, StrategyAnalyzer<Integer> slowTraceCountsStrategyAnalyzer, StrategyAnalyzer<Integer> verySlowTraceCountsStrategyAnalyzer) {
// encode header
AgentStatHeaderEncoder headerEncoder = new BitCountingHeaderEncoder();
headerEncoder.addCode(versionStrategyAnalyzer.getBestStrategy().getCode());
headerEncoder.addCode(schemaTypeStrategyAnalyzer.getBestStrategy().getCode());
headerEncoder.addCode(fastTraceCountsStrategyAnalyzer.getBestStrategy().getCode());
headerEncoder.addCode(normalTraceCountsStrategyAnalyzer.getBestStrategy().getCode());
headerEncoder.addCode(slowTraceCountsStrategyAnalyzer.getBestStrategy().getCode());
headerEncoder.addCode(verySlowTraceCountsStrategyAnalyzer.getBestStrategy().getCode());
final byte[] header = headerEncoder.getHeader();
valueBuffer.putPrefixedBytes(header);
// encode values
this.codec.encodeValues(valueBuffer, versionStrategyAnalyzer.getBestStrategy(), versionStrategyAnalyzer.getValues());
this.codec.encodeValues(valueBuffer, schemaTypeStrategyAnalyzer.getBestStrategy(), schemaTypeStrategyAnalyzer.getValues());
this.codec.encodeValues(valueBuffer, fastTraceCountsStrategyAnalyzer.getBestStrategy(), fastTraceCountsStrategyAnalyzer.getValues());
this.codec.encodeValues(valueBuffer, normalTraceCountsStrategyAnalyzer.getBestStrategy(), normalTraceCountsStrategyAnalyzer.getValues());
this.codec.encodeValues(valueBuffer, slowTraceCountsStrategyAnalyzer.getBestStrategy(), slowTraceCountsStrategyAnalyzer.getValues());
this.codec.encodeValues(valueBuffer, verySlowTraceCountsStrategyAnalyzer.getBestStrategy(), verySlowTraceCountsStrategyAnalyzer.getValues());
}
use of com.navercorp.pinpoint.common.server.bo.codec.stat.header.BitCountingHeaderEncoder in project pinpoint by naver.
the class JvmGcCodecV2 method encodeDataPoints.
private void encodeDataPoints(Buffer valueBuffer, StrategyAnalyzer<Long> heapUsedStrategyAnalyzer, StrategyAnalyzer<Long> heapMaxStrategyAnalyzer, StrategyAnalyzer<Long> nonHeapUsedStrategyAnalyzer, StrategyAnalyzer<Long> nonHeapMaxStrategyAnalyzer, StrategyAnalyzer<Long> gcOldCountStrategyAnalyzer, StrategyAnalyzer<Long> gcOldTimeStrategyAnalyzer) {
// encode header
AgentStatHeaderEncoder headerEncoder = new BitCountingHeaderEncoder();
headerEncoder.addCode(heapUsedStrategyAnalyzer.getBestStrategy().getCode());
headerEncoder.addCode(heapMaxStrategyAnalyzer.getBestStrategy().getCode());
headerEncoder.addCode(nonHeapUsedStrategyAnalyzer.getBestStrategy().getCode());
headerEncoder.addCode(nonHeapMaxStrategyAnalyzer.getBestStrategy().getCode());
headerEncoder.addCode(gcOldCountStrategyAnalyzer.getBestStrategy().getCode());
headerEncoder.addCode(gcOldTimeStrategyAnalyzer.getBestStrategy().getCode());
final byte[] header = headerEncoder.getHeader();
valueBuffer.putPrefixedBytes(header);
// encode values
this.codec.encodeValues(valueBuffer, heapUsedStrategyAnalyzer.getBestStrategy(), heapUsedStrategyAnalyzer.getValues());
this.codec.encodeValues(valueBuffer, heapMaxStrategyAnalyzer.getBestStrategy(), heapMaxStrategyAnalyzer.getValues());
this.codec.encodeValues(valueBuffer, nonHeapUsedStrategyAnalyzer.getBestStrategy(), nonHeapUsedStrategyAnalyzer.getValues());
this.codec.encodeValues(valueBuffer, nonHeapMaxStrategyAnalyzer.getBestStrategy(), nonHeapMaxStrategyAnalyzer.getValues());
this.codec.encodeValues(valueBuffer, gcOldCountStrategyAnalyzer.getBestStrategy(), gcOldCountStrategyAnalyzer.getValues());
this.codec.encodeValues(valueBuffer, gcOldTimeStrategyAnalyzer.getBestStrategy(), gcOldTimeStrategyAnalyzer.getValues());
}
Aggregations