75 BaseDataFile::BaseDataFile(
string _filename,
int _headerSize)
78 DEBUGCOUT(1) <<
"Setting Data File: " << _filename << endl;
82 setData(_filename, _headerSize);
87 int BaseDataFile::getNumberOfFiles()
105 void BaseDataFile::setData(
string filename,
int headerSize)
110 type = masterBuff->getInt(currentPos);
112 numFiles = masterBuff->getInt(currentPos);
115 processIDs =
new int[numFiles];
116 threadIDs =
new short[numFiles];
123 for (
int i = 0; i < numFiles; i++)
125 int proc_id = masterBuff->getInt(currentPos);
127 int thread_id = masterBuff->getInt(currentPos);
130 offsets[i].start = masterBuff->getLong(currentPos);
144 processIDs[i] = proc_id;
145 threadIDs[i] = thread_id;
147 else if (isMultiProcess())
149 processIDs[i] = proc_id;
165 bool BaseDataFile::isMultiProcess()
170 bool BaseDataFile::isMultiThreading()
175 bool BaseDataFile::isHybrid()
177 return (isMultiProcess() && isMultiThreading());
181 BaseDataFile::~BaseDataFile()
#define SIZEOF_END_OF_FILE_MARKER
#define SIZE_OF_TRACE_RECORD