config for x86 (32 bit only, for SH2 drc), add/revive profiling

This commit is contained in:
kub 2019-03-20 20:33:43 +01:00
parent 78d817c370
commit c1d15f7397
7 changed files with 91 additions and 15 deletions

View file

@ -40,6 +40,10 @@ ifeq "$(pprof)" "1"
DEFINES += PPROF
SRCS_COMMON += $(R)platform/linux/pprof.c
endif
ifeq "$(gperf)" "1"
DEFINES += GPERF
LDFLAGS += -lprofiler -lstdc++
endif
# ARM asm stuff
ifeq "$(ARCH)" "arm"

View file

@ -90,6 +90,10 @@ int main(int argc, char *argv[])
emu_init();
menu_init();
#ifdef GPERF
ProfilerStart("gperf.out");
#endif
engineState = PGS_Menu;
if (argc > 1)
@ -145,6 +149,9 @@ int main(int argc, char *argv[])
}
endloop:
#ifdef GPERF
ProfilerStop();
#endif
emu_finish();
plat_finish();