Search in sources :

Example 11 with TimeHistogram

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();
    }
}
Also used : TimeHistogram(com.navercorp.pinpoint.web.applicationmap.histogram.TimeHistogram)

Example 12 with TimeHistogram

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);
}
Also used : TimeHistogram(com.navercorp.pinpoint.web.applicationmap.histogram.TimeHistogram)

Example 13 with 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);
}
Also used : TimeHistogram(com.navercorp.pinpoint.web.applicationmap.histogram.TimeHistogram)

Aggregations

TimeHistogram (com.navercorp.pinpoint.web.applicationmap.histogram.TimeHistogram)13 Application (com.navercorp.pinpoint.web.vo.Application)3 LinkCallData (com.navercorp.pinpoint.web.applicationmap.rawdata.LinkCallData)2 LinkKey (com.navercorp.pinpoint.web.vo.LinkKey)2 Test (org.junit.Test)2 AcceptApplication (com.navercorp.pinpoint.web.service.map.AcceptApplication)1 RpcApplication (com.navercorp.pinpoint.web.service.map.RpcApplication)1 HashMap (java.util.HashMap)1