public class ParseExecutionLog
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
private class |
ParseExecutionLog.LogRecord
Log record object which has information about
one instance of actor executed includes its start and
end times, processor allocated etc.
|
Modifier and Type | Field and Description |
---|---|
(package private) java.util.LinkedHashMap<java.lang.String,java.lang.Integer> |
actorInstances |
private int |
actorLocation
Position where the actor name is located in the log file String.
|
boolean |
addFifoBlockingActors
Add plain blocks to the task execution where it starts and end FIFO writing.
|
private int |
clusterIdLocation
Position where the cluster id is located in the log file String.
|
private int |
instanceIdLocation
Position where the instance id is located in the log file String.
|
private int |
iterationLocation
Position where the iteration index is located in the log file String.
|
(package private) ParseExecutionLog.LogRecord[] |
logRecords
Array of all log records
|
private int |
procIdLocation
Position where the processor id is located in the log file String.
|
private int |
procSchedIndexLocation
Position where the index in the processor schedule is located in the log file String.
|
private int |
t0Location
Position where the time0 is located in the log file String.
|
private int |
t1Location
Position where the time1 is located in the log file String.
|
private int |
t2Location
Position where the time1 is located in the log file String.
|
private int |
t3Location
Position where the time3 is located in the log file String.
|
(package private) int |
totalInstances
total instances in the graph
|
(package private) int |
totalIterations
total number of iterations
|
Constructor and Description |
---|
ParseExecutionLog()
Initialize parse log object
|
Modifier and Type | Method and Description |
---|---|
void |
parseLogFile(java.lang.String logFileName)
Parse execution log file.
|
void |
plotGanntChart(int iterationId,
java.lang.String outputFileName)
Plot Gannt chart
|
public boolean addFifoBlockingActors
private final int actorLocation
private final int clusterIdLocation
private final int procIdLocation
private final int procSchedIndexLocation
private final int instanceIdLocation
private final int iterationLocation
private final int t0Location
private final int t1Location
private final int t2Location
private final int t3Location
java.util.LinkedHashMap<java.lang.String,java.lang.Integer> actorInstances
ParseExecutionLog.LogRecord[] logRecords
int totalInstances
int totalIterations
public void plotGanntChart(int iterationId, java.lang.String outputFileName)
iterationId
- iteration indexoutputFileName
- output file namepublic void parseLogFile(java.lang.String logFileName)
logFileName
- execution log file name