|
TPTP 4.5.0 Platform Project Internal API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.hyades.loaders.util.XMLLoader
org.eclipse.hyades.loaders.util.BinaryLoader
org.eclipse.hyades.trace.ui.internal.piclient.XMLTraceDataProcessor
org.eclipse.tptp.trace.ui.internal.launcher.deleg.application.StatGeneratorDataProcessor
public class StatGeneratorDataProcessor
Extends the XML trace data processor so that it can report statistical measurements (e.g. the size of the last incomming event). The overhead should be next to nothing.
| Field Summary |
|---|
| Fields inherited from class org.eclipse.hyades.trace.ui.internal.piclient.XMLTraceDataProcessor |
|---|
BUFFER_SIZE, END_TAG, END_TAG_REPLACE, END_TRACE, fileWriter, firstEvent, ID1_IN, ID1_OUT, ID2_IN, ID2_OUT, INCOMMING_DATA, NEW_LINE, newFile, prevTotalBytesRead, profileFileName, specialProcessing, START_TAG, START_TRACE, startTime, tempRemaining, totalBytesRead, validTag, XML_VERSION, XML_VERSION_TAG |
| Fields inherited from class org.eclipse.hyades.loaders.util.XMLLoader |
|---|
context, currentAttributeName, currentElementName, currentLoader, debug, defaultLoader, depth, error, file, fragmentsCount, LE_IN, LE_OUT, loaders, p, rootElement, sb, scanner, startDocument |
| Constructor Summary | |
|---|---|
StatGeneratorDataProcessor(org.eclipse.hyades.models.hierarchy.TRCAgentProxy agentProxy)
Constructor |
|
| Method Summary | |
|---|---|
int |
getSizeOfLastEvent()
Returns the size of the last incoming event. |
void |
incommingData(byte[] buffer,
int offset,
int length,
java.net.InetAddress peer)
Invoked when there is incoming events. |
void |
incommingData(char[] buffer,
int offset,
int length,
java.net.InetAddress peer)
Invoked when there is incoming data |
void |
resetStats()
Resets the statistical measurements that it keeps track. |
| Methods inherited from class org.eclipse.hyades.trace.ui.internal.piclient.XMLTraceDataProcessor |
|---|
checkAndRemoveEndTag, cleanUp, copyFile, copyZip, createWriter, dataServerExited, dispose, endTrace, getAgentProxy, getDumpFileName, getProfileFileName, getTimeStamp, getWriter, handleOutOfMemoryError, incommingData, incommingData, incommingStream, invalidDataType, invalidDataType, isNewProfileFile, isValidTag, loadEvent, loadEvent, loadEventHook, loadEventHook, loadEvents, makeWriter, notifyListener, renameFile, setProfileFileName, setWriter, startsWith, startTrace, stopAgent, waitingForData, writeByte, writeHeader, writeXMLVersion |
| Methods inherited from class org.eclipse.hyades.loaders.util.BinaryLoader |
|---|
isLoadXml, loadEvents, setLoadXml |
| Methods inherited from class org.eclipse.hyades.loaders.util.XMLLoader |
|---|
addToResource, attributeName, attributeName, attributeValueCharacters, attributeValueCharacters, characters, checkForStopProcessing, createOutputFile, endDocument, endElement, endElement, error, error, getContext, getLoader, getName, getProcessedFragments, isIgnoredElement, loadEvent, loadEvent, loadEvent, loadEvent, log, log, makeParser, makeScanner, printLoadInfo, processGlobalForwardReferences, restartParser, setCollectionMode, setLoadToModel, startDocument, startElement, startElement, toString, writeToBinaryOutputFile, writeToTextOutputFile |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public StatGeneratorDataProcessor(org.eclipse.hyades.models.hierarchy.TRCAgentProxy agentProxy)
agentProxy - The agent proxy| Method Detail |
|---|
public void incommingData(byte[] buffer,
int offset,
int length,
java.net.InetAddress peer)
incommingData in interface ExtendedDataServerListenerincommingData in class XMLTraceDataProcessorbuffer - The buffer to be processedlength - The length of the bufferpeer - The peer host
public void incommingData(char[] buffer,
int offset,
int length,
java.net.InetAddress peer)
incommingData in interface ExtendedDataServerListenerincommingData in class XMLTraceDataProcessorbuffer - The buffer to be processedlength - The length of the bufferpeer - The peer hostpublic int getSizeOfLastEvent()
public void resetStats()
|
TPTP 4.5.0 Platform Project Internal API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||