Commits

Anonymous committed c998d84

fixing ::clear() bug

  • Participants
  • Parent commits 1d00524

Comments (0)

Files changed (3)

 2007-04-04  Sebastien Binet  <binet@lblbox>
 
+	* tagging PerfMonEvent-00-00-03
+	* fixing ::clear bug
+
 	* tagging PerfMonEvent-00-00-02
 	* improved content of IoData class 
 

PerfMonEvent/PerfMonCpuData.h

 // Gaudi includes
 
 // Forward declaration
+namespace PerfMon { class CpuSvc; }
 
 namespace PerfMon {
 
 class CpuData
 { 
+  friend class PerfMon::CpuSvc;
+
   /////////////////////////////////////////////////////////////////// 
   // Public typedefs: 
   /////////////////////////////////////////////////////////////////// 
 inline void CpuData::clear()
 { 
   setUtime( -1. );
-  m_timings.clear();
+  m_timings.assign( m_tags.size(), -1. );
 }
 
 } //> end namespace PerfMon

PerfMonEvent/PerfMonIoData.h

 // Gaudi includes
 
 // Forward declaration
+namespace PerfMon { class IoSvc; }
 
 namespace PerfMon {
 
 class IoData
 { 
+  friend class PerfMon::IoSvc;
 
   /////////////////////////////////////////////////////////////////// 
   // Public typedefs: 
 
 inline void IoData::clear()
 { 
-  m_readTimings. clear();
-  m_writeTimings.clear();
+  m_readTimings. assign( m_tags.size(), -1. );
+  m_writeTimings.assign( m_tags.size(), -1. );
   m_commitOutput = -1.;
 }