Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:28:44

0001 #ifndef FWCore_MessageService_test_MemoryTestClient_B_h
0002 #define FWCore_MessageService_test_MemoryTestClient_B_h
0003 
0004 #include "FWCore/Framework/interface/Frameworkfwd.h"
0005 #include "FWCore/Framework/interface/EDAnalyzer.h"
0006 #include "FWCore/Utilities/interface/propagate_const.h"
0007 
0008 #include <vector>
0009 
0010 // MemoryTestClient_B is used for testing JObReprt outputs from
0011 // the MemoryService
0012 
0013 namespace edm {
0014   class ParameterSet;
0015 }
0016 
0017 
0018 namespace edmtest
0019 {
0020 
0021 class MemoryTestClient_B
0022   : public edm::EDAnalyzer
0023 {
0024 public:
0025   explicit
0026     MemoryTestClient_B( edm::ParameterSet const & );
0027 
0028   virtual
0029     ~MemoryTestClient_B()
0030   { }
0031 
0032   virtual
0033     void analyze( edm::Event      const & e
0034                 , edm::EventSetup const & c
0035                 );
0036 
0037 private:
0038   static int nevent;
0039   std::vector<double> memoryPattern;
0040   void initializeMemoryPattern(int pattern);
0041   double vsize;
0042   edm::propagate_const<char*> last_Allocation;
0043 };
0044 
0045 
0046 }  // namespace edmtest
0047 
0048 
0049 #endif  // FWCore_MessageService_test_MemoryTestClient_B_h