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;
}
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;
}
Aggregations