Home
last modified time | relevance | path

Searched refs:threadId (Results 1 – 8 of 8) sorted by relevance

/libcore/dalvik/src/main/java/dalvik/system/profiler/
DHprofData.java54 public final int threadId; field in HprofData.ThreadEvent
59 public static ThreadEvent start(int objectId, int threadId, String threadName, in start() argument
61 return new ThreadEvent(ThreadEventType.START, objectId, threadId, in start()
65 public static ThreadEvent end(int threadId) { in end() argument
66 return new ThreadEvent(ThreadEventType.END, threadId); in end()
69 private ThreadEvent(ThreadEventType type, int objectId, int threadId, in ThreadEvent() argument
76 this.threadId = threadId; in ThreadEvent()
82 private ThreadEvent(ThreadEventType type, int threadId) { in ThreadEvent() argument
85 this.threadId = threadId; in ThreadEvent()
94 result = 31 * result + threadId; in hashCode()
[all …]
DSamplingProfiler.java395 Integer threadId = threadIds.get(thread); in recordStackTrace() local
396 if (threadId == null) { in recordStackTrace()
399 mutableStackTrace.threadId = threadId; in recordStackTrace()
408 = new HprofData.StackTrace(nextStackTraceId++, threadId, stackFramesCopy); in recordStackTrace()
456 int threadId = nextThreadId++; in addStartThread() local
457 Integer old = threadIds.put(thread, threadId); in addStartThread()
470 = HprofData.ThreadEvent.start(nextObjectId++, threadId, in addStartThread()
482 Integer threadId = threadIds.remove(thread); in addEndThread() local
483 if (threadId == null) { in addEndThread()
486 HprofData.ThreadEvent event = HprofData.ThreadEvent.end(threadId); in addEndThread()
DBinaryHprofReader.java320 int threadId = in.readInt(); in parseStartThread() local
330 System.out.println("\tthreadId=" + threadId); in parseStartThread()
338 = HprofData.ThreadEvent.start(objectId, threadId, in parseStartThread()
344 int threadId = in.readInt(); in parseEndThread() local
346 System.out.println("\tthreadId=" + threadId); in parseEndThread()
348 HprofData.ThreadEvent event = HprofData.ThreadEvent.end(threadId); in parseEndThread()
376 int threadId = in.readInt(); in parseStackTrace() local
380 System.out.println("\tthreadId=" + threadId); in parseStackTrace()
405 = new HprofData.StackTrace(stackTraceId, threadId, stackFrames); in parseStackTrace()
DBinaryHprofWriter.java117 out.writeInt(e.threadId); in writeStartThread()
129 out.writeInt(e.threadId); in writeStopThread()
202 out.writeInt(stackTrace.threadId); in writeStackTrace()
DAsciiHprofWriter.java64 stackTrace.threadId); in write()
/libcore/dalvik/src/test/java/dalvik/system/profiler/
DSamplingProfilerTest.java125 final int threadId = 1; in test_HprofData_addThreadEvent() local
127 ThreadEvent start1 = ThreadEvent.start(objectId, threadId, in test_HprofData_addThreadEvent()
134 ThreadEvent end2 = ThreadEvent.end(threadId+1); in test_HprofData_addThreadEvent()
140 ThreadEvent end1 = ThreadEvent.end(threadId); in test_HprofData_addThreadEvent()
147 hprofData.addThreadEvent(ThreadEvent.end(threadId)); in test_HprofData_addThreadEvent()
164 final int threadId = 2; in test_HprofData_addStackTrace() local
169 StackTrace stackTrace = new StackTrace(stackTraceId, threadId, stackFrames); in test_HprofData_addStackTrace()
177 ThreadEvent start = ThreadEvent.start(objectId, threadId, in test_HprofData_addStackTrace()
231 assertTrue(threadsActive.add(event.threadId)); in assertHprofData()
232 assertTrue(threadsSeen.add(event.threadId)); in assertHprofData()
[all …]
/libcore/jsr166-tests/src/test/java/jsr166/
DThreadLocalTest.java67 int threadId = itl.get().intValue(); in run() local
68 for (int j = 0; j < threadId; j++) { in run()
69 x[threadId]++; in run()
/libcore/dalvik/src/main/java/org/apache/harmony/dalvik/ddmc/
DDdmVmInternal.java66 native public static StackTraceElement[] getStackTraceById(int threadId); in getStackTraceById() argument