Declare RTS-private prototypes with __attribute__((visibility("hidden")))
[ghc.git] / rts / GetTime.h
1 /* -----------------------------------------------------------------------------
2 *
3 * (c) The GHC Team 2005
4 *
5 * Machine-independent interface to time measurement
6 *
7 * ---------------------------------------------------------------------------*/
8
9 #ifndef GETTIME_H
10 #define GETTIME_H
11
12 #pragma GCC visibility push(hidden)
13
14 // We'll use a fixed resolution of usec for now. The machine
15 // dependent implementation may have a different resolution, but we'll
16 // normalise to this for the machine independent interface.
17 #define TICKS_PER_SECOND 1000000
18 typedef StgInt64 Ticks;
19
20 Ticks getProcessCPUTime (void);
21 Ticks getThreadCPUTime (void);
22 Ticks getProcessElapsedTime (void);
23 void getProcessTimes (Ticks *user, Ticks *elapsed);
24
25 // Not strictly timing, but related
26 nat getPageFaults (void);
27
28 #pragma GCC visibility pop
29
30 #endif /* GETTIME_H */