Search in sources :

Example 1 with ActiveTraceHistogram

use of com.navercorp.pinpoint.profiler.context.active.ActiveTraceHistogramFactory.ActiveTraceHistogram in project pinpoint by naver.

the class ActiveThreadCountService method getActiveThreadCountResponse.

private TCmdActiveThreadCountRes getActiveThreadCountResponse() {
    ActiveTraceHistogram activeTraceHistogram = this.activeTraceHistogramFactory.createHistogram();
    TCmdActiveThreadCountRes response = new TCmdActiveThreadCountRes();
    response.setHistogramSchemaType(activeTraceHistogram.getHistogramSchema().getTypeCode());
    response.setActiveThreadCount(activeTraceHistogram.getActiveTraceCounts());
    response.setTimeStamp(System.currentTimeMillis());
    return response;
}
Also used : TCmdActiveThreadCountRes(com.navercorp.pinpoint.thrift.dto.command.TCmdActiveThreadCountRes) ActiveTraceHistogram(com.navercorp.pinpoint.profiler.context.active.ActiveTraceHistogramFactory.ActiveTraceHistogram)

Example 2 with ActiveTraceHistogram

use of com.navercorp.pinpoint.profiler.context.active.ActiveTraceHistogramFactory.ActiveTraceHistogram in project pinpoint by naver.

the class DefaultActiveTraceMetric method activeTraceHistogram.

@Override
public TActiveTraceHistogram activeTraceHistogram() {
    ActiveTraceHistogram activeTraceHistogram = activeTraceHistogramFactory.createHistogram();
    int histogramSchemaTypeCode = activeTraceHistogram.getHistogramSchema().getTypeCode();
    List<Integer> activeTraceCounts = activeTraceHistogram.getActiveTraceCounts();
    TActiveTraceHistogram tActiveTraceHistogram = new TActiveTraceHistogram();
    tActiveTraceHistogram.setHistogramSchemaType(histogramSchemaTypeCode);
    tActiveTraceHistogram.setActiveTraceCount(activeTraceCounts);
    return tActiveTraceHistogram;
}
Also used : TActiveTraceHistogram(com.navercorp.pinpoint.thrift.dto.TActiveTraceHistogram) TActiveTraceHistogram(com.navercorp.pinpoint.thrift.dto.TActiveTraceHistogram) ActiveTraceHistogram(com.navercorp.pinpoint.profiler.context.active.ActiveTraceHistogramFactory.ActiveTraceHistogram)

Aggregations

ActiveTraceHistogram (com.navercorp.pinpoint.profiler.context.active.ActiveTraceHistogramFactory.ActiveTraceHistogram)2 TActiveTraceHistogram (com.navercorp.pinpoint.thrift.dto.TActiveTraceHistogram)1 TCmdActiveThreadCountRes (com.navercorp.pinpoint.thrift.dto.command.TCmdActiveThreadCountRes)1