CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ProfilerAnalyzer.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: PerfTools/Callgrind
4 // Class: ProfilerAnalyzer
5 //
18 //
19 // Original Author: Andrea Rizzi
20 // Created: Thu Jan 18 10:34:18 CET 2007
21 
22 
23 
24 // system include files
25 
26 
27 // user include files
30 
32 
35 
36 //
37 // class declaration
38 //
40 public:
41  explicit ProfilerAnalyzer(const edm::ParameterSet&);
43 
44 
45 private:
46  virtual void beginJob() override;
47  virtual void analyze(const edm::Event&, const edm::EventSetup&)=0;
48  virtual void endJob() override ;
49 
50 };
51 
53 public:
55  ProfilerAnalyzer(pset) {}
57 
58 
59 private:
60  virtual void analyze(const edm::Event&, const edm::EventSetup&) override;
61 
62 };
63 
65 public:
67  ProfilerAnalyzer(pset) {}
69 
70 private:
71  virtual void analyze(const edm::Event&, const edm::EventSetup&) override;
72 
73 };
74 
75 
76 //
77 // constants, enums and typedefs
78 //
79 
80 //
81 // static data member definitions
82 //
83 
84 //
85 // constructors and destructor
86 //
88 {
89 }
90 
91 
93 {
94 
95  // do anything here that needs to be done at desctruction time
96  // (e.g. close files, deallocate resources etc.)
97 
98 }
99 
100 
101 //
102 // member functions
103 //
104 
105 // ------------ method called to for each event ------------
106 void
108 {
109  edm::Service<ProfilerService>()->startInstrumentation();
110 }
111 void
113 {
114  edm::Service<ProfilerService>()->stopInstrumentation();
115 }
116 
117 
118 // ------------ method called once each job just before starting event loop ------------
119 void
121 {
122 }
123 
124 // ------------ method called once each job just after ending the event loop ------------
125 void
127 }
128 
129 //define this as a plug-in
StopProfilerAnalyzer(const edm::ParameterSet &pset)
virtual void endJob() override
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:17
virtual void analyze(const edm::Event &, const edm::EventSetup &)=0
virtual void analyze(const edm::Event &, const edm::EventSetup &) override
virtual void analyze(const edm::Event &, const edm::EventSetup &) override
ProfilerAnalyzer(const edm::ParameterSet &)
virtual void beginJob() override
StartProfilerAnalyzer(const edm::ParameterSet &pset)