long mintime;
long scale;
+ long minObservedTime = Long.MAX_VALUE;
+ long maxObservedTime = Long.MIN_VALUE;
+
+
public Trace( boolean c2txt, String inFile, String outFile, HashSet<Integer> eventset, long mintime, long maxtime, long scale) {
this.eventset=eventset;
this.maxtime=maxtime;
readThread( i );
}
+ System.out.println( "Minimum observed time stamp: "+minObservedTime );
+ System.out.println( "Maximum observed time stamp: "+maxObservedTime );
+
+ System.out.println( "\nelapsed time: "+(maxObservedTime - minObservedTime) );
+
+
printStats( outFile );
if( convert2plot ) {
timeStamp = readLong( tdata.dataStream );
i += 3;
+
+ if( timeStamp < minObservedTime ) {
+ minObservedTime = timeStamp;
+ }
+
+ if( timeStamp > maxObservedTime ) {
+ maxObservedTime = timeStamp;
+ }
+
+
int eventType = eventRaw & CP_EVENT_MASK;
int eventID = eventRaw >> CP_EVENT_BASESHIFT;
if (nstart<0)
nstart=0;
bwPlot.write( "set arrow from "+(nstart/scale)+","+thread+
- " to "+(nend/scale)+","+thread+" lt palette cb "+eventID+" nohead\n");
+ " to "+(nend/scale)+","+thread+" lt "+eventID+"\n");
}
} catch( IOException e ) {
e.printStackTrace();