Anonymous avatar Anonymous committed 5753d45

update for new design

Comments (0)

Files changed (4)

+2007-04-12  Sebastien Binet  <binet@lblbox>
+
+	* tagging PerfMonKernel-00-01-01
+	* update for new design
+
 2007-04-09  Sebastien Binet  <binet@lblbox>
 
 	* tagging PerfMonKernel-00-01-00

PerfMonKernel/IPerfMonStoreSvc.h

-///////////////////////// -*- C++ -*- /////////////////////////////
-// IPerfMonStoreSvc.h 
-// Header file for class IPerfMonStoreSvc
-// Author: S.Binet<binet@cern.ch>
-/////////////////////////////////////////////////////////////////// 
-#ifndef PERFMONKERNEL_IPERFMONSTORESVC_H 
-#define PERFMONKERNEL_IPERFMONSTORESVC_H 
-
-// STL includes
-#include <utility> // for std::pair
-
-// FrameWork includes
-#include "GaudiKernel/IService.h"
-
-// Forward declaration
-namespace PerfMon { class Header; }
-namespace PerfMon { class Data; }
-class     PerfMonSvc;
-
-class IPerfMonStoreSvc : virtual public IService
-{ 
-
-  /////////////////////////////////////////////////////////////////// 
-  // Friends
-  /////////////////////////////////////////////////////////////////// 
-  friend class  PerfMonSvc;
-
-  /////////////////////////////////////////////////////////////////// 
-  // Public methods: 
-  /////////////////////////////////////////////////////////////////// 
- public: 
-
-  /** Destructor: 
-   */
-  virtual ~IPerfMonStoreSvc();
-
-  /////////////////////////////////////////////////////////////////// 
-  // Const methods: 
-  ///////////////////////////////////////////////////////////////////
-  static const InterfaceID& interfaceID();
-
-  /////////////////////////////////////////////////////////////////// 
-  // Non-const methods: 
-  /////////////////////////////////////////////////////////////////// 
-
-  /////////////////////////////////////////////////////////////////// 
-  // Protected methods: 
-  /////////////////////////////////////////////////////////////////// 
- protected: 
-
-  /// open the store: register the PerfMon::Data and PerfMon::Header
-  /// into the back-end storage
-  virtual
-  std::pair<PerfMon::Header*, PerfMon::Data*> openStore() = 0;
-
-  /// register the @c PerfMon::Header layout into the back-end storage
-  virtual void book() = 0;
-
-  /// retrieve the PerfMon::Header for update/mod by client
-  virtual PerfMon::Header& header() = 0;
-
-  /// retrieve the PerfMon::Data for update/mod by client
-  virtual PerfMon::Data& data() = 0;
-
-  /// record the @c PerfMon::Header into the back-end storage
-  virtual void fill( const PerfMon::Header& o ) = 0;
-
-  /// commit the @c PerfMon::Data into the back-end storage
-  virtual void commit() = 0;
-
-}; 
-
-// I/O operators
-//////////////////////
-
-/////////////////////////////////////////////////////////////////// 
-// Inline methods: 
-/////////////////////////////////////////////////////////////////// 
-inline const InterfaceID& IPerfMonStoreSvc::interfaceID() 
-{ 
-  static const InterfaceID IID_IPerfMonStoreSvc("IPerfMonStoreSvc", 1, 0);
-  return IID_IPerfMonStoreSvc; 
-}
-
-#endif //> PERFMONKERNEL_IPERFMONSTORESVC_H

PerfMonKernel/IPerfMonTool.h

 // FrameWork includes
 #include "GaudiKernel/IAlgTool.h"
 
-// Forward declaration
-namespace PerfMon { class Header; }
-namespace PerfMon { class Data;   }
-
 class IPerfMonTool : virtual public IAlgTool
 { 
 
   // Non-const methods: 
   /////////////////////////////////////////////////////////////////// 
 
-  /// fill the @c PerfMon::Data object with interesting informations
-  virtual void monitor( const PerfMon::Header& hdr,
-			      PerfMon::Data&   cpu ) = 0;
+  /// retrieve performance monitoring data - during initialize
+  //virtual void monitorInitialize() = 0;
+
+  /// retrieve performance monitoring data - during execute
+  virtual void monitor() = 0;
+
+  /// retrieve performance monitoring data - during finalize
+  //virtual void monitorFinalize() = 0;
 
   /////////////////////////////////////////////////////////////////// 
   // Protected methods: 

src/IPerfMonStoreSvc.cxx

-///////////////////////// -*- C++ -*- /////////////////////////////
-// IPerfMonStoreSvc.cxx 
-// Implementation file for class IPerfMonStoreSvc
-// Author: S.Binet<binet@cern.ch>
-/////////////////////////////////////////////////////////////////// 
-
-// PerfMonKernel includes
-#include "PerfMonKernel/IPerfMonStoreSvc.h"
-
-/////////////////////////////////////////////////////////////////// 
-// Public methods: 
-/////////////////////////////////////////////////////////////////// 
-
-// Constructors
-////////////////
-
-// Destructor
-///////////////
-IPerfMonStoreSvc::~IPerfMonStoreSvc()
-{}
-
-/////////////////////////////////////////////////////////////////// 
-// Const methods: 
-///////////////////////////////////////////////////////////////////
-
-/////////////////////////////////////////////////////////////////// 
-// Non-const methods: 
-/////////////////////////////////////////////////////////////////// 
-
-/////////////////////////////////////////////////////////////////// 
-// Protected methods: 
-/////////////////////////////////////////////////////////////////// 
-
-/////////////////////////////////////////////////////////////////// 
-// Const methods: 
-///////////////////////////////////////////////////////////////////
-
-/////////////////////////////////////////////////////////////////// 
-// Non-const methods: 
-/////////////////////////////////////////////////////////////////// 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.