Home
last modified time | relevance | path

Searched refs:stackFrames (Results 1 – 7 of 7) sorted by relevance

/libcore/dalvik/src/main/java/dalvik/system/profiler/
DPortableThreadSampler.java34 StackTraceElement[] stackFrames = thread.getStackTrace(); in getStackTrace() local
35 if (stackFrames.length == 0) { in getStackTrace()
38 if (stackFrames.length > depth) { in getStackTrace()
39 stackFrames = Arrays.copyOfRange(stackFrames, 0, depth); in getStackTrace()
41 return stackFrames; in getStackTrace()
DHprofData.java142 StackTraceElement[] stackFrames; field in HprofData.StackTrace
148 public StackTrace(int stackTraceId, int threadId, StackTraceElement[] stackFrames) { in StackTrace() argument
149 if (stackFrames == null) { in StackTrace()
154 this.stackFrames = stackFrames; in StackTrace()
162 return stackFrames; in getStackFrames()
168 result = 31 * result + Arrays.hashCode(stackFrames); in hashCode()
177 return threadId == s.threadId && Arrays.equals(stackFrames, s.stackFrames); in equals()
182 if (stackFrames.length > 0) { in toString()
184 for (StackTraceElement stackFrame : stackFrames) { in toString()
DSamplingProfiler.java382 StackTraceElement[] stackFrames = threadSampler.getStackTrace(thread); in run() local
383 if (stackFrames == null) { in run()
386 recordStackTrace(thread, stackFrames); in run()
394 private void recordStackTrace(Thread thread, StackTraceElement[] stackFrames) { in recordStackTrace() argument
400 mutableStackTrace.stackFrames = stackFrames; in recordStackTrace()
406 StackTraceElement[] stackFramesCopy = stackFrames.clone(); in recordStackTrace()
DAsciiHprofWriter.java65 for (StackTraceElement e : stackTrace.stackFrames) { in write()
86 stackTrace.stackFrames[0].getClassName(), in write()
87 stackTrace.stackFrames[0].getMethodName()); in write()
DBinaryHprofWriter.java193 int frames = stackTrace.stackFrames.length; in writeStackTrace()
196 stackFrameIds[i] = writeStackFrame(stackTrace.stackFrames[i]); in writeStackTrace()
DBinaryHprofReader.java390 StackTraceElement[] stackFrames = new StackTraceElement[frames]; in parseStackTrace() local
401 stackFrames[i] = stackFrame; in parseStackTrace()
405 = new HprofData.StackTrace(stackTraceId, threadId, stackFrames); in parseStackTrace()
/libcore/dalvik/src/test/java/dalvik/system/profiler/
DSamplingProfilerTest.java167 StackTraceElement[] stackFrames = new Throwable().getStackTrace(); in test_HprofData_addStackTrace() local
169 StackTrace stackTrace = new StackTrace(stackTraceId, threadId, stackFrames); in test_HprofData_addStackTrace()