public class TraceReader
extends java.lang.Object
Constructor and Description |
---|
TraceReader(org.eclipse.core.resources.IFile traceFile,
org.eclipse.core.resources.IFile threadIDsFile,
java.lang.String delimiter)
Instantiates a new trace reader.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
GetAnalysisContext()
Gets the analysis context.
|
double |
GetClockRate()
Gets the clock rate.
|
int |
GetEventIDColumn()
Gets the event ID column.
|
int |
GetThreadIDColumn()
Gets the thread ID column.
|
java.lang.String |
GetThreadIdOfGivenEvents(java.util.ArrayList<java.util.ArrayList<java.lang.Integer>> eventsList)
Gets the thread id of given events.
|
java.util.ArrayList<java.lang.String> |
GetThreadIDs()
***********
Getters
**********.
|
java.util.ArrayList<java.util.ArrayList<Event>> |
GetThreadSpecificEvents()
Gets the thread specific events.
|
int |
GetTimeStampColumn()
Gets the time stamp column.
|
void |
PrintThreadSpecificEvents(java.lang.String tid)
Prints the thread specific events.
|
void |
WriteThreadSpecificEventsIntoFile(java.lang.String tid)
Write thread specific events into file.
|
public TraceReader(org.eclipse.core.resources.IFile traceFile, org.eclipse.core.resources.IFile threadIDsFile, java.lang.String delimiter)
traceFile
- the trace filethreadIDsFile
- the thread I ds filedelimiter
- the delimiterpublic void PrintThreadSpecificEvents(java.lang.String tid)
tid
- the tidpublic void WriteThreadSpecificEventsIntoFile(java.lang.String tid)
tid
- the tidpublic java.util.ArrayList<java.lang.String> GetThreadIDs()
public java.lang.String GetAnalysisContext()
public java.util.ArrayList<java.util.ArrayList<Event>> GetThreadSpecificEvents()
public java.lang.String GetThreadIdOfGivenEvents(java.util.ArrayList<java.util.ArrayList<java.lang.Integer>> eventsList)
eventsList
- the events listpublic int GetThreadIDColumn()
public int GetEventIDColumn()
public int GetTimeStampColumn()
public double GetClockRate()