Home | History | Annotate | Download | only in profiler

Lines Matching refs:stackTrace

138     public static final class StackTrace {
144 StackTrace() {
148 public StackTrace(int stackTraceId, int threadId, StackTraceElement[] stackFrames) {
173 if (!(o instanceof StackTrace)) {
176 StackTrace s = (StackTrace) o;
192 return "StackTrace[stackTraceId=" + stackTraceId
204 public final StackTrace stackTrace;
207 private Sample(StackTrace stackTrace, int count) {
208 if (stackTrace == null) {
209 throw new NullPointerException("stackTrace == null");
214 this.stackTrace = stackTrace;
220 result = 31 * result + stackTrace.hashCode();
230 return count == s.count && stackTrace.equals(s.stackTrace);
234 return "Sample[count=" + count + " " + stackTrace + "]";
272 private final Map<HprofData.StackTrace, int[]> stackTraces;
274 public HprofData(Map<StackTrace, int[]> stackTraces) {
335 for (Entry<StackTrace, int[]> e : stackTraces.entrySet()) {
336 StackTrace stackTrace = e.getKey();
339 Sample sample = new Sample(stackTrace, count);
384 public void addStackTrace(StackTrace stackTrace, int[] countCell) {
385 if (!threadIdToThreadEvent.containsKey(stackTrace.threadId)) {
386 throw new IllegalArgumentException("Unknown thread id " + stackTrace.threadId);
388 int[] old = stackTraces.put(stackTrace, countCell);
390 throw new IllegalArgumentException("StackTrace already registered for id "
391 + stackTrace.stackTraceId + ":\n" + stackTrace);