|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.btrace.Profiler
public abstract class Profiler
Profiler is a highly specialized aggregation-like data collector optimized
for high-speed collection of the application execution call tree data.
Nested Class Summary | |
---|---|
static interface |
Profiler.MBeanValueProvider
Helper interface to make accessing a Profiler as an MBean type safe. |
static class |
Profiler.Record
Record represents an atomic unit in the application execution call tree |
static class |
Profiler.Snapshot
Snapshot is an immutable image of the current profiling data collected by the Profiler It is created by calling snapshot() method |
Field Summary | |
---|---|
long |
START_TIME
This property exposes the time of creating this particular Profiler instance. |
Constructor Summary | |
---|---|
Profiler()
Creates a new Profiler instance |
Method Summary | |
---|---|
abstract void |
recordEntry(java.lang.String blockName)
Records the event of entering an execution unit (eg. |
abstract void |
recordExit(java.lang.String blockName,
long duration)
Records the event of exiting an execution unit (eg. |
abstract void |
reset()
Resets all the collected data |
Profiler.Snapshot |
snapshot()
Creates an immutable snapshot of the collected profiling data |
abstract Profiler.Snapshot |
snapshot(boolean reset)
Creates an immutable snapshot of the collected profiling data. Makes it possible to reset the profiler after creating the snapshot, eventually |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final long START_TIME
Constructor Detail |
---|
public Profiler()
Method Detail |
---|
public abstract void recordEntry(java.lang.String blockName)
blockName
- The execution unit identifier (eg. method FQN)public abstract void recordExit(java.lang.String blockName, long duration)
blockName
- The execution unit identifier (eg. method FQN)duration
- Invocation duration in nanosecondspublic final Profiler.Snapshot snapshot()
public abstract Profiler.Snapshot snapshot(boolean reset)
reset
- Signals the profiler to perform reset right after getting the snapshot (in an atomic transaction)
public abstract void reset()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |