public final class TraceEngine extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TraceEngine.State |
Modifier and Type | Field and Description |
---|---|
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 |
Modifier | Constructor and Description |
---|---|
private |
TraceEngine() |
Modifier and Type | Method and Description |
---|---|
void |
addProperty(String key,
String value)
Add a Property (key, value) pair to the Feed.
|
private void |
createDaemonThreads() |
EventType |
defineEvent(String name,
String description)
Defines an EventType.
|
EventType |
defineEvent(String name,
String description,
EventAttribute attribute)
Define an EventType.
|
EventType |
defineEvent(String name,
String description,
EventAttribute[] attributes)
Defines 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() |
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
private TraceEngine()
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)