Checkpointing support. 1st edition.
[charm.git] / src / ck-perf / trace-summaryBOC.h
1
2 #include "TraceSummary.decl.h"
3
4 extern CkGroupID traceSummaryGID;
5
6 class TraceSummaryInit : public Chare {
7   public:
8   TraceSummaryInit(CkArgMsg*) {
9     traceSummaryGID = CProxy_TraceSummaryBOC::ckNew();
10   }
11   TraceSummaryInit(CkMigrateMessage *m):Chare(m) {}
12 };
13
14 class TraceSummaryBOC : public CBase_TraceSummaryBOC {
15 private:
16   int count;
17   BinEntry *bins;
18   int  nBins;
19   int nTracedPEs;
20 public:
21   TraceSummaryBOC(void): count(0), bins(NULL), nBins(0), nTracedPEs(0) {};
22   TraceSummaryBOC(CkMigrateMessage *m):CBase_TraceSummaryBOC(m) {};
23   void askSummary();
24   void sendSummaryBOC(int traced, int n, BinEntry *b);
25 private:
26   void write();
27 };
28
29