Some changes to the "memory profiling" feature:
- gtk frontend and core now use the same preprocessor definition to protect their code. - removed the #define from the code and added a configure switch.
This commit is contained in:
parent
2fabaf3003
commit
fc2b5ee106
|
@ -202,6 +202,11 @@ AC_ARG_ENABLE(debug,
|
|||
AC_HELP_STRING(--enable-debug, enable debug information),
|
||||
AC_DEFINE(DEBUG))
|
||||
|
||||
dnl - Enable memory profiling
|
||||
AC_ARG_ENABLE(memory-profiling,
|
||||
AC_HELP_STRING(--enable-memory-profiling, enable memory profiling information),
|
||||
AC_DEFINE(PROFILE_MEMORY_ACCESS))
|
||||
|
||||
dnl -- set maintainer mode
|
||||
AM_MAINTAINER_MODE
|
||||
AC_SUBST(USE_MAINTAINER_MODE)
|
||||
|
|
|
@ -100,7 +100,6 @@ void mmu_log_debug(u32 adr, u8 proc, const char *fmt, ...)
|
|||
/*
|
||||
*
|
||||
*/
|
||||
//#define PROFILE_MEMORY_ACCESS 1
|
||||
#define EARLY_MEMORY_ACCESS 1
|
||||
|
||||
#define INTERNAL_DTCM_READ 1
|
||||
|
|
|
@ -43,9 +43,7 @@
|
|||
|
||||
#define EMULOOP_PRIO (G_PRIORITY_HIGH_IDLE + 20)
|
||||
|
||||
#define ENABLE_MEMORY_PROFILING 1
|
||||
|
||||
#ifdef ENABLE_MEMORY_PROFILING
|
||||
#ifdef PROFILE_MEMORY_ACCESS
|
||||
#include <gdk/gdkkeysyms.h>
|
||||
#endif
|
||||
|
||||
|
@ -915,7 +913,7 @@ static gint Key_Press(GtkWidget *w, GdkEventKey *e)
|
|||
ADD_KEY( Cur_Keypad, Key );
|
||||
if(desmume_running()) update_keypad(Cur_Keypad);
|
||||
|
||||
#ifdef ENABLE_MEMORY_PROFILING
|
||||
#ifdef PROFILE_MEMORY_ACCESS
|
||||
if ( e->keyval == GDK_Tab) {
|
||||
print_memory_profiling();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue