use of com.navercorp.pinpoint.profiler.context.active.UnsampledActiveTraceSnapshot in project pinpoint by naver.
the class LimitedListTest method newTestData.
private List<ThreadDump> newTestData(int localTransactionId, long startTime, long threadId, int size) {
List<ThreadDump> result = new ArrayList<ThreadDump>();
for (int i = 0; i < size; i++) {
ActiveTraceSnapshot activeTraceSnapshot = new UnsampledActiveTraceSnapshot(localTransactionId, startTime, threadId);
ThreadInfo threadInfo = mock(ThreadInfo.class);
ThreadDump threadDump = new ThreadDump(activeTraceSnapshot, threadInfo);
threadId++;
localTransactionId++;
startTime++;
result.add(threadDump);
}
for (ThreadDump threadDump : result) {
logger.debug("newTestData:{}", threadDump);
}
Collections.shuffle(result);
return result;
}
Aggregations