Fixed message tracing on comm thread (to trace those entry methods that need
[charm.git] / src / ck-perf / trace-controlPointsBOC.h
1 #include "TraceControlPoints.decl.h"
2
3 extern CkGroupID traceControlPointsGID;
4
5
6 // We typically declare parallel object classes here for the purposes of
7 // performing parallel operations for the trace module after the main
8 // application has completed execution (and calls CkExit()).
9 //
10 // TraceControlPointsInit is an initialization class.
11 //
12 // TraceControlPointsBOC is a one-per-processor object (defined in the .ci file as
13 //    a "group" instead of a "chare") which hosts the methods for the
14 //    parallel operations. In this case, there are no methods defined.
15 //    Otherwise, one may write any Charm++ code here.
16
17 class TraceControlPointsInit : public Chare {
18   public:
19   TraceControlPointsInit(CkArgMsg*) {
20     traceControlPointsGID = CProxy_TraceControlPointsBOC::ckNew();
21     CProxy_TraceControlPointsBOC controlPointsProxy(traceControlPointsGID);
22     //CkPrintf("Initializing counters on pe %d\n", CkMyPe());
23    
24   }
25   TraceControlPointsInit(CkMigrateMessage *m):Chare(m) {}
26 };
27
28 class TraceControlPointsBOC : public CBase_TraceControlPointsBOC {
29 public:
30   TraceControlPointsBOC(void) {
31   };
32
33
34   void pup(PUP::er &p)
35   {
36     CBase_TraceControlPointsBOC::pup(p);
37   }
38
39  TraceControlPointsBOC(CkMigrateMessage *m) : CBase_TraceControlPointsBOC(m) {};
40
41 };
42
43