Last change
on this file since 1687 was
748,
checked in by sam, 10 years ago
|
core: fix include guard naming scheme.
|
-
Property svn:keywords set to
Id
|
File size:
1.1 KB
|
Line | |
---|
1 | // |
---|
2 | // Lol Engine |
---|
3 | // |
---|
4 | // Copyright: (c) 2010-2011 Sam Hocevar <sam@hocevar.net> |
---|
5 | // This program is free software; you can redistribute it and/or |
---|
6 | // modify it under the terms of the Do What The Fuck You Want To |
---|
7 | // Public License, Version 2, as published by Sam Hocevar. See |
---|
8 | // http://sam.zoy.org/projects/COPYING.WTFPL for more details. |
---|
9 | // |
---|
10 | |
---|
11 | // |
---|
12 | // The Profiler class |
---|
13 | // ------------------- |
---|
14 | // The Profiler is a static class that collects statistic counters. |
---|
15 | // |
---|
16 | |
---|
17 | #if !defined __LOL_PROFILER_H__ |
---|
18 | #define __LOL_PROFILER_H__ |
---|
19 | |
---|
20 | #include <stdint.h> |
---|
21 | |
---|
22 | namespace lol |
---|
23 | { |
---|
24 | |
---|
25 | class Profiler |
---|
26 | { |
---|
27 | public: |
---|
28 | enum |
---|
29 | { |
---|
30 | STAT_TICK_FRAME = 0, |
---|
31 | STAT_TICK_GAME, |
---|
32 | STAT_TICK_DRAW, |
---|
33 | STAT_TICK_BLIT, |
---|
34 | STAT_USER_00, |
---|
35 | STAT_USER_01, |
---|
36 | STAT_USER_02, |
---|
37 | STAT_USER_03, |
---|
38 | STAT_USER_04, |
---|
39 | STAT_USER_05, |
---|
40 | STAT_USER_06, |
---|
41 | STAT_USER_07, |
---|
42 | STAT_USER_08, |
---|
43 | STAT_USER_09, |
---|
44 | STAT_COUNT |
---|
45 | }; |
---|
46 | |
---|
47 | static void Start(int id); |
---|
48 | static void Stop(int id); |
---|
49 | static float GetAvg(int id); |
---|
50 | static float GetMax(int id); |
---|
51 | }; |
---|
52 | |
---|
53 | } /* namespace lol */ |
---|
54 | |
---|
55 | #endif // __LOL_PROFILER_H__ |
---|
56 | |
---|
Note: See
TracBrowser
for help on using the repository browser.