use of com.navercorp.pinpoint.common.server.bo.stat.join.JoinLongFieldBo in project pinpoint by naver.
the class ApplicationLoadedClassChartGroupTest method testUnloadedCLass.
private void testUnloadedCLass(LongApplicationStatPoint point, AggreJoinLoadedClassBo loadedClassBo) {
final JoinLongFieldBo unloadedClass = loadedClassBo.getUnloadedClassJoinValue();
assertEquals(point.getXVal(), loadedClassBo.getTimestamp());
assertEquals(point.getYValForAvg(), unloadedClass.getAvg(), 0);
assertEquals(point.getYValForMin(), unloadedClass.getMin(), 0);
assertEquals(point.getYValForMax(), unloadedClass.getMax(), 0);
assertEquals(point.getAgentIdForMin(), unloadedClass.getMinAgentId());
assertEquals(point.getAgentIdForMax(), unloadedClass.getMaxAgentId());
}
use of com.navercorp.pinpoint.common.server.bo.stat.join.JoinLongFieldBo in project pinpoint by naver.
the class ApplicationResponseTimeChartGroupTest method testResponseTimeCount.
private void testResponseTimeCount(DoubleApplicationStatPoint responseTimePoint, AggreJoinResponseTimeBo aggreJoinResponseTimeBo) {
final JoinLongFieldBo responseTimeJoinValue = aggreJoinResponseTimeBo.getResponseTimeJoinValue();
assertEquals(responseTimePoint.getYValForAvg(), responseTimeJoinValue.getAvg(), 0);
assertEquals(responseTimePoint.getYValForMin(), responseTimeJoinValue.getMin(), 0);
assertEquals(responseTimePoint.getYValForMax(), responseTimeJoinValue.getMax(), 0);
assertEquals(responseTimePoint.getAgentIdForMax(), responseTimeJoinValue.getMaxAgentId());
assertEquals(responseTimePoint.getAgentIdForMin(), responseTimeJoinValue.getMinAgentId());
}
use of com.navercorp.pinpoint.common.server.bo.stat.join.JoinLongFieldBo in project pinpoint by naver.
the class ApplicationTransactionChartGroupTest method testTranCount.
private void testTranCount(DoubleApplicationStatPoint transactionPoint, AggreJoinTransactionBo aggreJoinTransactionBo) {
final JoinLongFieldBo totalCountJoinValue = aggreJoinTransactionBo.getTotalCountJoinValue();
assertEquals(transactionPoint.getYValForAvg(), calculateTPS(totalCountJoinValue.getAvg(), aggreJoinTransactionBo.getCollectInterval()), 0);
assertEquals(transactionPoint.getYValForMin(), calculateTPS(totalCountJoinValue.getMin(), aggreJoinTransactionBo.getCollectInterval()), 0);
assertEquals(transactionPoint.getYValForMax(), calculateTPS(totalCountJoinValue.getMax(), aggreJoinTransactionBo.getCollectInterval()), 0);
assertEquals(transactionPoint.getAgentIdForMin(), totalCountJoinValue.getMinAgentId());
assertEquals(transactionPoint.getAgentIdForMax(), totalCountJoinValue.getMaxAgentId());
}
use of com.navercorp.pinpoint.common.server.bo.stat.join.JoinLongFieldBo in project pinpoint by naver.
the class ApplicationDirectBufferChartGroupTest method testDirectMemoryUsed.
private void testDirectMemoryUsed(LongApplicationStatPoint directBufferPoint, AggreJoinDirectBufferBo aggreJoinDirectBufferBo) {
final JoinLongFieldBo directMemoryUsedJoinValue = aggreJoinDirectBufferBo.getDirectMemoryUsedJoinValue();
assertEquals(directBufferPoint.getXVal(), aggreJoinDirectBufferBo.getTimestamp());
assertEquals(directBufferPoint.getYValForAvg(), directMemoryUsedJoinValue.getAvg(), 0);
assertEquals(directBufferPoint.getYValForMin(), directMemoryUsedJoinValue.getMin(), 0);
assertEquals(directBufferPoint.getYValForMax(), directMemoryUsedJoinValue.getMax(), 0);
assertEquals(directBufferPoint.getAgentIdForMin(), directMemoryUsedJoinValue.getMinAgentId());
assertEquals(directBufferPoint.getAgentIdForMax(), directMemoryUsedJoinValue.getMaxAgentId());
}
use of com.navercorp.pinpoint.common.server.bo.stat.join.JoinLongFieldBo in project pinpoint by naver.
the class JoinMemorySampler method sampleDataPoints.
@Override
public AggreJoinMemoryBo sampleDataPoints(int index, long timestamp, List<JoinMemoryBo> joinMemoryBoList, JoinMemoryBo previousDataPoint) {
if (CollectionUtils.isEmpty(joinMemoryBoList)) {
return AggreJoinMemoryBo.createUncollectedObject(timestamp);
}
JoinMemoryBo joinMemoryBo = JoinMemoryBo.joinMemoryBoList(joinMemoryBoList, timestamp);
String id = joinMemoryBo.getId();
final JoinLongFieldBo heapUsedJoinValue = joinMemoryBo.getHeapUsedJoinValue();
final JoinLongFieldBo nonHeapUsedJoinValue = joinMemoryBo.getNonHeapUsedJoinValue();
AggreJoinMemoryBo aggreJoinMemoryBo = new AggreJoinMemoryBo(id, timestamp, heapUsedJoinValue, nonHeapUsedJoinValue);
return aggreJoinMemoryBo;
}
Aggregations