Search in sources :

Example 1 with ThreadDump

use of com.navercorp.pinpoint.profiler.receiver.service.ThreadDump in project pinpoint by naver.

the class GrpcActiveThreadDumpService method getActiveThreadDumpList.

private List<PActiveThreadDump> getActiveThreadDumpList(PCmdActiveThreadDump commandActiveThreadDump) {
    ThreadDumpRequest request = ThreadDumpRequest.create(commandActiveThreadDump);
    Collection<ThreadDump> activeTraceInfoList = activeThreadDump.getActiveThreadDumpList(request);
    return toPActiveThreadDump(activeTraceInfoList);
}
Also used : PActiveThreadDump(com.navercorp.pinpoint.grpc.trace.PActiveThreadDump) PThreadDump(com.navercorp.pinpoint.grpc.trace.PThreadDump) ThreadDump(com.navercorp.pinpoint.profiler.receiver.service.ThreadDump) PCmdActiveThreadDump(com.navercorp.pinpoint.grpc.trace.PCmdActiveThreadDump) ThreadDumpRequest(com.navercorp.pinpoint.profiler.receiver.service.ThreadDumpRequest)

Example 2 with ThreadDump

use of com.navercorp.pinpoint.profiler.receiver.service.ThreadDump in project pinpoint by naver.

the class GrpcActiveThreadLightDumpService method getActiveThreadDumpList.

private List<PActiveThreadLightDump> getActiveThreadDumpList(PCmdActiveThreadLightDump commandActiveThreadLightDump) {
    ThreadDumpRequest request = ThreadDumpRequest.create(commandActiveThreadLightDump);
    Collection<ThreadDump> activeTraceInfoList = activeThreadDump.getActiveThreadDumpList(request);
    return toPActiveThreadLightDump(activeTraceInfoList);
}
Also used : ThreadDump(com.navercorp.pinpoint.profiler.receiver.service.ThreadDump) ThreadDumpRequest(com.navercorp.pinpoint.profiler.receiver.service.ThreadDumpRequest)

Example 3 with ThreadDump

use of com.navercorp.pinpoint.profiler.receiver.service.ThreadDump in project pinpoint by naver.

the class GrpcActiveThreadLightDumpService method toPActiveThreadLightDump.

private List<PActiveThreadLightDump> toPActiveThreadLightDump(Collection<ThreadDump> activeTraceInfoList) {
    final List<PActiveThreadLightDump> result = new ArrayList<PActiveThreadLightDump>(activeTraceInfoList.size());
    for (ThreadDump threadDump : activeTraceInfoList) {
        PActiveThreadLightDump pActiveThreadLightDump = createActiveThreadDump(threadDump);
        result.add(pActiveThreadLightDump);
    }
    return result;
}
Also used : ThreadDump(com.navercorp.pinpoint.profiler.receiver.service.ThreadDump) PActiveThreadLightDump(com.navercorp.pinpoint.grpc.trace.PActiveThreadLightDump) ArrayList(java.util.ArrayList)

Example 4 with ThreadDump

use of com.navercorp.pinpoint.profiler.receiver.service.ThreadDump in project pinpoint by naver.

the class GrpcActiveThreadDumpService method toPActiveThreadDump.

private List<PActiveThreadDump> toPActiveThreadDump(Collection<ThreadDump> activeTraceInfoList) {
    final List<PActiveThreadDump> result = new ArrayList<PActiveThreadDump>(activeTraceInfoList.size());
    for (ThreadDump threadDump : activeTraceInfoList) {
        PActiveThreadDump pActiveThreadLightDump = createActiveThreadDump(threadDump);
        result.add(pActiveThreadLightDump);
    }
    return result;
}
Also used : PActiveThreadDump(com.navercorp.pinpoint.grpc.trace.PActiveThreadDump) PThreadDump(com.navercorp.pinpoint.grpc.trace.PThreadDump) ThreadDump(com.navercorp.pinpoint.profiler.receiver.service.ThreadDump) PCmdActiveThreadDump(com.navercorp.pinpoint.grpc.trace.PCmdActiveThreadDump) PActiveThreadDump(com.navercorp.pinpoint.grpc.trace.PActiveThreadDump) ArrayList(java.util.ArrayList)

Aggregations

ThreadDump (com.navercorp.pinpoint.profiler.receiver.service.ThreadDump)4 PActiveThreadDump (com.navercorp.pinpoint.grpc.trace.PActiveThreadDump)2 PCmdActiveThreadDump (com.navercorp.pinpoint.grpc.trace.PCmdActiveThreadDump)2 PThreadDump (com.navercorp.pinpoint.grpc.trace.PThreadDump)2 ThreadDumpRequest (com.navercorp.pinpoint.profiler.receiver.service.ThreadDumpRequest)2 ArrayList (java.util.ArrayList)2 PActiveThreadLightDump (com.navercorp.pinpoint.grpc.trace.PActiveThreadLightDump)1