use of com.navercorp.pinpoint.web.applicationmap.histogram.TimeHistogram in project pinpoint by naver.
the class ResponseTimeDataCollector method sum.
private void sum(Collection<TimeHistogram> timeHistograms) {
for (TimeHistogram timeHistogram : timeHistograms) {
slowCount += timeHistogram.getSlowCount();
slowCount += timeHistogram.getVerySlowCount();
errorCount += timeHistogram.getTotalErrorCount();
totalCount += timeHistogram.getTotalCount();
}
}
use of com.navercorp.pinpoint.web.applicationmap.histogram.TimeHistogram in project pinpoint by naver.
the class ResponseTimeDataCollector method sum.
private void sum(Collection<TimeHistogram> timeHistograms) {
for (TimeHistogram timeHistogram : timeHistograms) {
slowCount += timeHistogram.getSlowCount();
slowCount += timeHistogram.getVerySlowCount();
errorCount += timeHistogram.getTotalErrorCount();
totalCount += timeHistogram.getTotalCount();
}
}
use of com.navercorp.pinpoint.web.applicationmap.histogram.TimeHistogram in project pinpoint by naver.
the class MapStatisticsCallerDataCollector method getCountRate.
public long getCountRate(String calleName, DataCategory dataCategory) {
final LinkCallData linkCallData = calleeStatMap.get(calleName);
if (linkCallData == null) {
return 0;
}
long count = 0;
long totalCount = 0;
switch(dataCategory) {
case SLOW_RATE:
for (TimeHistogram timeHistogram : linkCallData.getTimeHistogram()) {
count += timeHistogram.getSlowCount();
count += timeHistogram.getVerySlowCount();
totalCount += timeHistogram.getTotalCount();
}
break;
case ERROR_RATE:
for (TimeHistogram timeHistogram : linkCallData.getTimeHistogram()) {
count += timeHistogram.getTotalErrorCount();
totalCount += timeHistogram.getTotalCount();
}
break;
default:
throw new IllegalArgumentException("Can't calculate rate for " + dataCategory);
}
return calculatePercent(count, totalCount);
}
use of com.navercorp.pinpoint.web.applicationmap.histogram.TimeHistogram in project pinpoint by naver.
the class AgentHistogram method addTimeHistogram.
public void addTimeHistogram(TimeHistogram timeHistogram) {
TimeHistogram find = this.timeHistogramMap.get(timeHistogram.getTimeStamp());
if (find == null) {
find = new TimeHistogram(agentId.getServiceType(), timeHistogram.getTimeStamp());
this.timeHistogramMap.put(timeHistogram.getTimeStamp(), find);
}
find.add(timeHistogram);
}
use of com.navercorp.pinpoint.web.applicationmap.histogram.TimeHistogram in project pinpoint by naver.
the class LinkCallData method addCallData.
public void addCallData(long timestamp, short slot, long count) {
TimeHistogram histogram = getTimeHistogram(timestamp);
histogram.addCallCount(slot, count);
}
Aggregations