com.jrockit.memleak.value
Class Trace

java.lang.Object
  extended by com.jrockit.memleak.value.Trace
All Implemented Interfaces:
ITrace

public class Trace
extends java.lang.Object
implements ITrace

Represents an allocation stack trace, including invocation count.


Constructor Summary
Trace(int count, ILocation[] stack)
          Create a new stack trace.
 
Method Summary
 int getCount()
          The number of times this particular stacktrace has occured.
 ILocation[] getStack()
          The stack trace.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Trace

public Trace(int count,
             ILocation[] stack)
Create a new stack trace.

Parameters:
count - the invocation count
stack - an array of stack frames
Method Detail

getCount

public int getCount()
Description copied from interface: ITrace
The number of times this particular stacktrace has occured.

Specified by:
getCount in interface ITrace
Returns:
number of times this stack has occured

getStack

public ILocation[] getStack()
Description copied from interface: ITrace
The stack trace. Position 0 is the most recently executed method (the 'top' of the stack). This order is the same as for Throwable.getStackTrace().

Specified by:
getStack in interface ITrace
Returns:
the stack

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 1999, 2011, Oracle and/or its affiliates. All rights reserved.