1 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
2  *   Mupen64plus - profile.h                                               *
3  *   Mupen64Plus homepage: http://code.google.com/p/mupen64plus/           *
4  *   Copyright (C) 2014 Bobby Smiles                                       *
5  *   Copyright (C) 2012 CasualJames                                        *
6  *   Copyright (C) 2002 Hacktarux                                          *
7  *                                                                         *
8  *   This program is free software; you can redistribute it and/or modify  *
9  *   it under the terms of the GNU General Public License as published by  *
10  *   the Free Software Foundation; either version 2 of the License, or     *
11  *   (at your option) any later version.                                   *
12  *                                                                         *
13  *   This program is distributed in the hope that it will be useful,       *
14  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
15  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
16  *   GNU General Public License for more details.                          *
17  *                                                                         *
18  *   You should have received a copy of the GNU General Public License     *
19  *   along with this program; if not, write to the                         *
20  *   Free Software Foundation, Inc.,                                       *
21  *   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.          *
22  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
23 
24 #ifndef PROFILE_H
25 #define PROFILE_H
26 
27 enum timed_section
28 {
29     TIMED_SECTION_ALL,
30     TIMED_SECTION_GFX,
31     TIMED_SECTION_AUDIO,
32     TIMED_SECTION_COMPILER,
33     TIMED_SECTION_IDLE,
34     NUM_TIMED_SECTIONS
35 };
36 
37 #ifdef PROFILE
38   void timed_section_start(enum timed_section section);
39   void timed_section_end(enum timed_section section);
40   void timed_sections_refresh(void);
41 #else
42   #define timed_section_start(a)
43   #define timed_section_end(a)
44   #define timed_sections_refresh()
45 #endif
46 
47 #endif
48