benchmark silo added
[c11concurrency-benchmarks.git] / silo / masstree / perfstat.hh
1 /* Masstree
2  * Eddie Kohler, Yandong Mao, Robert Morris
3  * Copyright (c) 2012-2013 President and Fellows of Harvard College
4  * Copyright (c) 2012-2013 Massachusetts Institute of Technology
5  *
6  * Permission is hereby granted, free of charge, to any person obtaining a
7  * copy of this software and associated documentation files (the "Software"),
8  * to deal in the Software without restriction, subject to the conditions
9  * listed in the Masstree LICENSE file. These conditions include: you must
10  * preserve this copyright notice, and you cannot mention the copyright
11  * holders in advertising related to the Software without their permission.
12  * The Software is provided WITHOUT ANY WARRANTY, EXPRESS OR IMPLIED. This
13  * notice is a summary of the Masstree LICENSE file; the license in that file
14  * is legally binding.
15  */
16 #ifndef PERF_STAT_HH
17 #define PERF_STAT_HH 1
18 #include "compiler.hh"
19 #include "misc.hh"
20 #include <stdlib.h>
21 #include <inttypes.h>
22
23 namespace Perf {
24 struct stat {
25     /** @brief An initialization call from main function
26      */
27     static void initmain(bool pinthreads);
28 #if GCSTATS
29     int gc_nfree;
30 #endif
31     void initialize(int cid) {
32         this->cid = cid;
33     }
34     static void print(const stat **s, int n);
35     int cid;    // core index
36 };
37 }
38 #endif