edu.rice.cs.hpc.traceviewer.data.timeline.ProcessTimeline Class Reference

A data structure that stores one line of timestamp-cpid data. More...

Collaboration diagram for edu.rice.cs.hpc.traceviewer.data.timeline.ProcessTimeline:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ProcessTimeline (int _lineNum, HashMap< Integer, CallPath > _scopeMap, IBaseData dataTrace, int _processNumber, int _numPixelH, long _timeRange, long _startingTime)
 Creates a new ProcessTimeline with the given parameters.
 ProcessTimeline (TraceDataByRank _data, HashMap< Integer, CallPath > _scopeMap, int _processNumber, int _numPixelH, long _timeRange, long _startingTime)
void readInData ()
 Fills the ProcessTimeline with data from the file.
long getTime (int sample)
 Gets the time that corresponds to the index sample in times.
void shiftTimeBy (long lowestStartingTime)
CallPath getCallPath (int sample, int depth)
 returns the call path corresponding to the sample and depth given
void copyDataFrom (ProcessTimeline another)
 Fills this one with the data from another.
int size ()
 Returns the number of elements in this ProcessTimeline.
int line ()
 Returns this ProcessTimeline's line number.
int findMidpointBefore (long time, boolean usingMidpoint)
 Finds the sample to which 'time' most closely corresponds in the ProcessTimeline.
TraceDataByRank getData ()

Package Attributes

final TraceDataByRank data

Private Member Functions

int getCpid (int sample)
 Gets the cpid that corresponds to the index sample in timeLine.

Private Attributes

HashMap< Integer, CallPathscopeMap
 The mapping between the cpid's and the actual scopes.
int lineNum
 This ProcessTimeline's line number.
long startingTime
 The initial time in view.
long timeRange
 The range of time in view.
double pixelLength
 The amount of time that each pixel on the screen correlates to.

Detailed Description

A data structure that stores one line of timestamp-cpid data.

Definition at line 14 of file ProcessTimeline.java.


Constructor & Destructor Documentation

edu.rice.cs.hpc.traceviewer.data.timeline.ProcessTimeline.ProcessTimeline ( int  _lineNum,
HashMap< Integer, CallPath _scopeMap,
IBaseData  dataTrace,
int  _processNumber,
int  _numPixelH,
long  _timeRange,
long  _startingTime 
)
edu.rice.cs.hpc.traceviewer.data.timeline.ProcessTimeline.ProcessTimeline ( TraceDataByRank  _data,
HashMap< Integer, CallPath _scopeMap,
int  _processNumber,
int  _numPixelH,
long  _timeRange,
long  _startingTime 
)

Member Function Documentation

void edu.rice.cs.hpc.traceviewer.data.timeline.ProcessTimeline.copyDataFrom ( ProcessTimeline  another  ) 
int edu.rice.cs.hpc.traceviewer.data.timeline.ProcessTimeline.findMidpointBefore ( long  time,
boolean  usingMidpoint 
)

Finds the sample to which 'time' most closely corresponds in the ProcessTimeline.

Parameters:
time : the requested time
Returns:
the index of the sample if the time is within the range, -1 otherwise

Definition at line 141 of file ProcessTimeline.java.

References edu.rice.cs.hpc.traceviewer.data.timeline.ProcessTimeline.data, and edu.rice.cs.hpc.traceviewer.data.db.TraceDataByRank.findMidpointBefore().

Referenced by edu.rice.cs.hpc.traceviewer.ui.DataViewer.setSample(), and edu.rice.cs.hpc.traceviewer.misc.CallStackViewer.setSample().

CallPath edu.rice.cs.hpc.traceviewer.data.timeline.ProcessTimeline.getCallPath ( int  sample,
int  depth 
)
int edu.rice.cs.hpc.traceviewer.data.timeline.ProcessTimeline.getCpid ( int  sample  )  [private]
TraceDataByRank edu.rice.cs.hpc.traceviewer.data.timeline.ProcessTimeline.getData (  ) 
long edu.rice.cs.hpc.traceviewer.data.timeline.ProcessTimeline.getTime ( int  sample  ) 
int edu.rice.cs.hpc.traceviewer.data.timeline.ProcessTimeline.line (  ) 
void edu.rice.cs.hpc.traceviewer.data.timeline.ProcessTimeline.readInData (  ) 
void edu.rice.cs.hpc.traceviewer.data.timeline.ProcessTimeline.shiftTimeBy ( long  lowestStartingTime  ) 
int edu.rice.cs.hpc.traceviewer.data.timeline.ProcessTimeline.size (  ) 

Member Data Documentation

The amount of time that each pixel on the screen correlates to.

Definition at line 29 of file ProcessTimeline.java.

Referenced by edu.rice.cs.hpc.traceviewer.data.timeline.ProcessTimeline.ProcessTimeline(), and edu.rice.cs.hpc.traceviewer.data.timeline.ProcessTimeline.readInData().


The documentation for this class was generated from the following file:

Generated on 5 May 2015 for HPCVIEWER by  doxygen 1.6.1