|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jikesrvm.tuningfork.TraceEngine
public final class TraceEngine
TuningFork Trace Engine (roughly functionally equivalent to the Logger classes in the TuningFork JavaTraceGenerationLibrary).
Nested Class Summary | |
---|---|
static class |
TraceEngine.State
|
Field Summary | |
---|---|
private EventTypeChunk |
activeEventTypeChunk
|
private FeedletChunk |
activeFeedletChunk
|
private HashSetRVM<Feedlet> |
activeFeedlets
|
private PropertyTableChunk |
activePropertyTableChunk
|
private EventChunkQueue |
availableEventChunks
|
static TraceEngine |
engine
|
private static int |
INITIAL_EVENT_CHUNKS
|
private static int |
IO_INTERVAL_MS
|
private int |
nextFeedletId
|
private OutputStream |
outputStream
|
private TraceEngine.State |
state
|
private EventChunkQueue |
unwrittenEventChunks
|
private ChunkQueue |
unwrittenMetaChunks
|
Constructor Summary | |
---|---|
private |
TraceEngine()
|
Method Summary | |
---|---|
void |
addProperty(String key,
String value)
Add a Property (key, value) pair to the Feed. |
private void |
createDaemonThreads()
|
EventType |
defineEvent(String name,
String description)
Define an EventType |
EventType |
defineEvent(String name,
String description,
EventAttribute attribute)
Define an EventType |
EventType |
defineEvent(String name,
String description,
EventAttribute[] attributes)
Define an EventType |
void |
earlyStageBooting()
|
void |
fullyBootedVM()
|
(package private) EventChunk |
getEventChunk()
|
private void |
internalDefineEvent(EventType et)
|
private void |
ioThreadMainLoop()
|
Feedlet |
makeFeedlet(String name,
String description)
|
void |
removeFeedlet(Feedlet feedlet)
|
void |
returnFullEventChunk(EventChunk events)
|
private void |
shutdownAllFeedlets()
|
private void |
shutdownFeedlet(Feedlet feedlet)
|
private void |
writeEventChunks()
|
private void |
writeInitialProperites()
Put some basic properties about this VM build & current execution into the feed. |
private void |
writeMetaChunks()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final TraceEngine engine
private static final int IO_INTERVAL_MS
private static final int INITIAL_EVENT_CHUNKS
private final ChunkQueue unwrittenMetaChunks
private final EventChunkQueue unwrittenEventChunks
private final EventChunkQueue availableEventChunks
private FeedletChunk activeFeedletChunk
private EventTypeChunk activeEventTypeChunk
private PropertyTableChunk activePropertyTableChunk
private int nextFeedletId
private final HashSetRVM<Feedlet> activeFeedlets
private OutputStream outputStream
private TraceEngine.State state
Constructor Detail |
---|
private TraceEngine()
Method Detail |
---|
public void earlyStageBooting()
public void fullyBootedVM()
private void writeInitialProperites()
public EventType defineEvent(String name, String description)
name
- The name to give the eventdescription
- A human readable description of the event for display in the TuningFork UI.public EventType defineEvent(String name, String description, EventAttribute attribute)
name
- The name to give the eventdescription
- A human readable description of the event for display in the TuningFork UI.attribute
- Description of the event's single data valuepublic EventType defineEvent(String name, String description, EventAttribute[] attributes)
name
- The name to give the eventdescription
- A human readable description of the event for display in the TuningFork UI.attributes
- Descriptions of the event's data valuesprivate void internalDefineEvent(EventType et)
public void addProperty(String key, String value)
key
- the key for the propertyvalue
- the value for the propertypublic Feedlet makeFeedlet(String name, String description)
public void removeFeedlet(Feedlet feedlet)
private void shutdownAllFeedlets()
private void shutdownFeedlet(Feedlet feedlet)
private void createDaemonThreads()
private void ioThreadMainLoop()
private void writeMetaChunks()
private void writeEventChunks()
EventChunk getEventChunk()
public void returnFullEventChunk(EventChunk events)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |