edu.rice.cs.hpc.traceviewer.data.db.TraceDataByRank Class Reference

Collaboration diagram for edu.rice.cs.hpc.traceviewer.data.db.TraceDataByRank:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 TraceDataByRank (AbstractBaseData _data, int _rank, int _numPixelH)
boolean isEmpty ()
 TraceDataByRank (DataRecord[] data)
void getData (long timeStart, long timeRange, double pixelLength)
long getTime (int sample)
 Gets the time that corresponds to the index sample in times.
int getCpid (int sample)
 Gets the cpid that corresponds to the index sample in timeLine.
int getMetricId (int sample)
void shiftTimeBy (long lowestStartingTime)
 Shifts all the times in the ProcessTimeline to the left by lowestStartingTime.
int size ()
 Returns the number of elements in this ProcessTimeline.
int findMidpointBefore (long time, boolean usingMidpoint)
 Finds the sample to which 'time' most closely corresponds in the ProcessTimeline.
void addSample (int index, DataRecord datacpid)
 Adds a sample to times and timeLine.
Vector< DataRecordgetListOfData ()
void setListOfData (Vector< DataRecord > anotherList)
int getRank ()

Public Attributes

Header header
 File header information, including trace record size.

Static Public Attributes

static final int HeaderSzMin = Header.MagicLen + Header.VersionLen + Header.EndianLen + Header.FlagsLen
static final int RecordSzMin

Protected Attributes

Vector< DataRecordlistcpid

Package Attributes

int rank

Private Member Functions

long getTimeMidPoint (int left, int right)
int sampleTimeLine (long minLoc, long maxLoc, int startPixel, int endPixel, int minIndex, double pixelLength, long startingTime)
long findTimeInInterval (long time, long left_boundary_offset, long right_boundary_offset)
long getAbsoluteLocation (long relativePosition)
long getRelativeLocation (long absolutePosition)
Header getHeader (long begHeader)
DataRecord getData (long location)
long getNumberOfRecords (long start, long end)
void postProcess ()

Private Attributes

AbstractBaseData data
int numPixelH

Detailed Description

Definition at line 10 of file TraceDataByRank.java.


Constructor & Destructor Documentation

edu.rice.cs.hpc.traceviewer.data.db.TraceDataByRank.TraceDataByRank ( AbstractBaseData  _data,
int  _rank,
int  _numPixelH 
)
edu.rice.cs.hpc.traceviewer.data.db.TraceDataByRank.TraceDataByRank ( DataRecord[]  data  ) 

Member Function Documentation

void edu.rice.cs.hpc.traceviewer.data.db.TraceDataByRank.addSample ( int  index,
DataRecord  datacpid 
)
int edu.rice.cs.hpc.traceviewer.data.db.TraceDataByRank.findMidpointBefore ( long  time,
boolean  usingMidpoint 
)

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

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

Definition at line 179 of file TraceDataByRank.java.

References edu.rice.cs.hpc.traceviewer.data.db.TraceDataByRank.getTimeMidPoint(), and edu.rice.cs.hpc.traceviewer.data.db.TraceDataByRank.listcpid.

Referenced by edu.rice.cs.hpc.traceviewer.data.timeline.ProcessTimeline.findMidpointBefore().

long edu.rice.cs.hpc.traceviewer.data.db.TraceDataByRank.findTimeInInterval ( long  time,
long  left_boundary_offset,
long  right_boundary_offset 
) [private]
long edu.rice.cs.hpc.traceviewer.data.db.TraceDataByRank.getAbsoluteLocation ( long  relativePosition  )  [private]
int edu.rice.cs.hpc.traceviewer.data.db.TraceDataByRank.getCpid ( int  sample  ) 

Gets the cpid that corresponds to the index sample in timeLine.

Definition at line 143 of file TraceDataByRank.java.

References edu.rice.cs.hpc.traceviewer.data.db.TraceDataByRank.listcpid.

Referenced by edu.rice.cs.hpc.traceviewer.data.timeline.ProcessTimeline.getCpid().

DataRecord edu.rice.cs.hpc.traceviewer.data.db.TraceDataByRank.getData ( long  location  )  [private]
void edu.rice.cs.hpc.traceviewer.data.db.TraceDataByRank.getData ( long  timeStart,
long  timeRange,
double  pixelLength 
)
Header edu.rice.cs.hpc.traceviewer.data.db.TraceDataByRank.getHeader ( long  begHeader  )  [private]
Vector<DataRecord> edu.rice.cs.hpc.traceviewer.data.db.TraceDataByRank.getListOfData (  ) 
int edu.rice.cs.hpc.traceviewer.data.db.TraceDataByRank.getMetricId ( int  sample  ) 
long edu.rice.cs.hpc.traceviewer.data.db.TraceDataByRank.getNumberOfRecords ( long  start,
long  end 
) [private]
int edu.rice.cs.hpc.traceviewer.data.db.TraceDataByRank.getRank (  ) 
long edu.rice.cs.hpc.traceviewer.data.db.TraceDataByRank.getRelativeLocation ( long  absolutePosition  )  [private]
long edu.rice.cs.hpc.traceviewer.data.db.TraceDataByRank.getTime ( int  sample  ) 

Gets the time that corresponds to the index sample in times.

Definition at line 130 of file TraceDataByRank.java.

References edu.rice.cs.hpc.traceviewer.data.db.TraceDataByRank.listcpid.

Referenced by edu.rice.cs.hpc.traceviewer.data.timeline.ProcessTimeline.getTime().

long edu.rice.cs.hpc.traceviewer.data.db.TraceDataByRank.getTimeMidPoint ( int  left,
int  right 
) [private]
boolean edu.rice.cs.hpc.traceviewer.data.db.TraceDataByRank.isEmpty (  ) 
void edu.rice.cs.hpc.traceviewer.data.db.TraceDataByRank.postProcess (  )  [private]
int edu.rice.cs.hpc.traceviewer.data.db.TraceDataByRank.sampleTimeLine ( long  minLoc,
long  maxLoc,
int  startPixel,
int  endPixel,
int  minIndex,
double  pixelLength,
long  startingTime 
) [private]
void edu.rice.cs.hpc.traceviewer.data.db.TraceDataByRank.setListOfData ( Vector< DataRecord anotherList  ) 
void edu.rice.cs.hpc.traceviewer.data.db.TraceDataByRank.shiftTimeBy ( long  lowestStartingTime  ) 

Shifts all the times in the ProcessTimeline to the left by lowestStartingTime.

Definition at line 155 of file TraceDataByRank.java.

References edu.rice.cs.hpc.traceviewer.data.db.TraceDataByRank.listcpid, and edu.rice.cs.hpc.traceviewer.data.db.DataRecord.timestamp.

Referenced by edu.rice.cs.hpc.traceviewer.data.timeline.ProcessTimeline.shiftTimeBy().

int edu.rice.cs.hpc.traceviewer.data.db.TraceDataByRank.size (  ) 

Returns the number of elements in this ProcessTimeline.

Definition at line 168 of file TraceDataByRank.java.

References edu.rice.cs.hpc.traceviewer.data.db.TraceDataByRank.listcpid.

Referenced by edu.rice.cs.hpc.traceviewer.data.timeline.ProcessTimeline.size().


Member Data Documentation

Definition at line 13 of file TraceDataByRank.java.

Initial value:
 Constants.SIZEOF_LONG 
                                        + Constants.SIZEOF_INT

Definition at line 14 of file TraceDataByRank.java.


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

Generated on 5 May 2015 for HPCVIEWER by  doxygen 1.6.1