mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
simple profiler added
git-svn-id: file:///home/notaz/opt/svn/PicoDrive@850 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
e05b81fc5b
commit
f6c49d38cb
12 changed files with 258 additions and 8 deletions
|
@ -779,6 +779,18 @@ extern void lprintf(const char *fmt, ...);
|
|||
#define elprintf(w,f,...)
|
||||
#endif
|
||||
|
||||
// profiling
|
||||
#ifdef PPROF
|
||||
#include <platform/linux/pprof.h>
|
||||
#else
|
||||
#define pprof_init()
|
||||
#define pprof_finish()
|
||||
#define pprof_start(x)
|
||||
#define pprof_end(...)
|
||||
#define pprof_end_sub(...)
|
||||
#endif
|
||||
|
||||
// misc
|
||||
#ifdef _MSC_VER
|
||||
#define cdprintf
|
||||
#else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue