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