make it compile
[IRC.git] / Robust / src / Runtime / bamboo / multicoreprofile.h
1 #ifndef MULTICOREPROFILE_H
2 #define MULTICOREPROFILE_H
3 #include "structdefs.h"
4
5 enum eventtypes {
6   EV_GCTIME,
7   EV_NUMEVENTS
8 };
9
10 char eventnames[][30]={"gctime", "endmarker"};
11
12 struct eventprofile {
13   long long totaltimestarts;
14   long long totaltimestops;
15   int numstarts;
16   int numstops;
17 };
18
19 struct coreprofile {
20   struct eventprofile events[EV_NUMEVENTS];
21 };
22
23 struct profiledata {
24   struct coreprofile cores[NUMCORES];
25 };
26
27 extern struct profiledata * eventdata;
28
29 void startEvent(enum eventtypes event);
30 void stopEvent(enum eventtypes event);
31 void printResults();
32
33 #endif