Definition at line 98 of file ProfParse.cc.
bool Reader::nextSample |
( |
VoidVec & |
vv | ) |
|
Definition at line 107 of file ProfParse.cc.
References dtNoiseDBValidation_cfg::cerr, fd_, pos, and SiPixelLorentzAngle_cfi::read.
Referenced by writeProfileData().
110 int sz =
read(
fd_,&cnt,
sizeof(
unsigned int));
113 perror(
"Reader::nextSample: read count");
114 std::cerr <<
"could not read next sample from profile data\n";
117 if(sz == 0)
return false;
118 if((
unsigned)sz<
sizeof(
unsigned int)) {
120 <<
"could not read the correct amount of profile data\n";
124 std::cerr <<
"Reader::nextSample: stack length is nonsense " << cnt <<
"\n";
130 int byte_cnt = cnt*
sizeof(
void*);
132 while((sz =
read(
fd_,pos,byte_cnt)) < byte_cnt) {
134 perror(
"Reader::nextSample: read stack");