Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:12:47

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/one/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 namespace edmtest {
0018 
0019   class MemoryTestClient_B : public edm::one::EDAnalyzer<> {
0020   public:
0021     explicit MemoryTestClient_B(edm::ParameterSet const&);
0022 
0023     void analyze(edm::Event const& e, edm::EventSetup const& c) final;
0024 
0025   private:
0026     static int nevent;
0027     std::vector<double> memoryPattern;
0028     void initializeMemoryPattern(int pattern);
0029     double vsize;
0030     edm::propagate_const<char*> last_Allocation;
0031   };
0032 
0033 }  // namespace edmtest
0034 
0035 #endif  // FWCore_MessageService_test_MemoryTestClient_B_h