Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-10-08 02:27:20

0001 #ifndef FWCore_MessageService_test_MemoryTestClient_A_h
0002 #define FWCore_MessageService_test_MemoryTestClient_A_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_A 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_A : public edm::one::EDAnalyzer<edm::one::SharedResources> {
0020   public:
0021     explicit MemoryTestClient_A(edm::ParameterSet const&);
0022 
0023     virtual ~MemoryTestClient_A() {}
0024 
0025     virtual void analyze(edm::Event const& e, edm::EventSetup const& c);
0026 
0027   private:
0028     static int nevent;
0029     std::vector<double> memoryPattern;
0030     void initializeMemoryPattern(int pattern);
0031     double vsize;
0032     edm::propagate_const<char*> last_allocation;
0033   };
0034 
0035 }  // namespace edmtest
0036 
0037 #endif  // FWCore_MessageService_test_MemoryTestClient_A_h