public final class HprofData extends Object
AsciiHprofWriter or
BinaryHprofWriter.
The data includes:
| Modifier and Type | Class and Description |
|---|---|
static class |
HprofData.Sample
A read only container combining a stack trace with its frequency.
|
static class |
HprofData.StackTrace
A unique stack trace for a specific thread.
|
static class |
HprofData.ThreadEvent
ThreadEvent represents thread creation and death events for
reporting.
|
static class |
HprofData.ThreadEventType |
| Constructor and Description |
|---|
HprofData(Map<HprofData.StackTrace,int[]> stackTraces) |
| Modifier and Type | Method and Description |
|---|---|
void |
addStackTrace(HprofData.StackTrace stackTrace,
int[] countCell)
Record an stack trace and an associated int[] cell of
sample cound for the stack trace.
|
void |
addThreadEvent(HprofData.ThreadEvent event)
Record an event in the thread history.
|
int |
getDepth()
Get the stack sampling depth
|
int |
getFlags()
Get the
BinaryHprof.ControlSettings flags |
Set<HprofData.Sample> |
getSamples()
Return a new set containing the current sample data.
|
long |
getStartMillis()
The start time in milliseconds of the last profiling period.
|
List<HprofData.ThreadEvent> |
getThreadHistory()
Return an unmodifiable history of start and end thread events.
|
void |
setDepth(int depth)
Set the stack sampling depth
|
void |
setFlags(int flags)
Set the
BinaryHprof.ControlSettings flags |
void |
setStartMillis(long startMillis)
Set the time for the start of the current sampling period.
|
public HprofData(Map<HprofData.StackTrace,int[]> stackTraces)
public long getStartMillis()
public void setStartMillis(long startMillis)
public int getFlags()
BinaryHprof.ControlSettings flagspublic void setFlags(int flags)
BinaryHprof.ControlSettings flagspublic int getDepth()
public void setDepth(int depth)
public List<HprofData.ThreadEvent> getThreadHistory()
public Set<HprofData.Sample> getSamples()
public void addThreadEvent(HprofData.ThreadEvent event)
public void addStackTrace(HprofData.StackTrace stackTrace, int[] countCell)