/[pcsx2_0.9.7]/trunk/pcsx2/SamplProf.h
ViewVC logotype

Annotation of /trunk/pcsx2/SamplProf.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 31 - (hide annotations) (download)
Tue Sep 7 03:24:11 2010 UTC (9 years, 9 months ago) by william
File MIME type: text/plain
File size: 849 byte(s)
committing r3113 initial commit again...
1 william 31 #ifndef _SAMPLPROF_H_
2     #define _SAMPLPROF_H_
3    
4     #include "Common.h"
5    
6     // The profiler does not have a Linux version yet.
7     // So for now we turn it into duds for non-Win32 platforms.
8    
9     #ifdef WIN32
10    
11     void ProfilerInit();
12     void ProfilerTerm();
13     void ProfilerSetEnabled(bool Enabled);
14     void ProfilerRegisterSource(const char* Name, const void* buff, u32 sz);
15     void ProfilerRegisterSource(const char* Name, const void* function);
16     void ProfilerTerminateSource( const char* Name );
17    
18     #else
19    
20     // Disables the profiler in Debug & Linux builds.
21     // Profiling info in debug builds isn't much use anyway and the console
22     // popups are annoying when you're trying to trace debug logs and stuff.
23    
24     #define ProfilerInit() (void)0
25     #define ProfilerTerm() (void)0
26     #define ProfilerSetEnabled 0&&
27     #define ProfilerRegisterSource 0&&
28     #define ProfilerTerminateSource 0&&
29    
30     #endif
31    
32     #endif

  ViewVC Help
Powered by ViewVC 1.1.22