diff --git a/Grid/util/FlightRecorder.cc b/Grid/util/FlightRecorder.cc index 60d18fb6..7bbd4acc 100644 --- a/Grid/util/FlightRecorder.cc +++ b/Grid/util/FlightRecorder.cc @@ -39,6 +39,8 @@ int FlightRecorder::ContinueOnFail; int FlightRecorder::LoggingMode; int FlightRecorder::ChecksumComms; int FlightRecorder::ChecksumCommsSend; +const char * FlightRecorder::StepName; +int32_t FlightRecorder::StepLoggingCounter; int32_t FlightRecorder::XmitLoggingCounter; int32_t FlightRecorder::RecvLoggingCounter; int32_t FlightRecorder::CsumLoggingCounter; @@ -58,6 +60,8 @@ void FlightRecorder::ResetCounters(void) CsumLoggingCounter=0; NormLoggingCounter=0; ReductionLoggingCounter=0; + StepName = "No steps started"; + StepLoggingCounter=0; } void FlightRecorder::Truncate(void) { @@ -88,6 +92,11 @@ void FlightRecorder::SetLoggingMode(FlightRecorder::LoggingMode_t mode) assert(0); } } +bool FlightRecorder::StepLog(const char *name) +{ + StepName = name; + StepLoggingCounter ++; +} void FlightRecorder::SetLoggingModePrint(void) { @@ -111,17 +120,19 @@ uint64_t FlightRecorder::ErrorCount(void) { return ErrorCounter; } -void FlightRecorder::NormLog(double value) +bool FlightRecorder::NormLog(double value) { uint64_t hex = * ( (uint64_t *)&value ); if(LoggingMode == LoggingModePrint) { std::cerr<<"FlightRecorder::NormLog : "<< NormLoggingCounter <<" "<si_signo); fprintf(stderr," mem address %llx\n",(unsigned long long)si->si_addr); fprintf(stderr," code %d\n",si->si_code);