mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-03-03 19:47:59 +00:00
Ensure headless doesn't crash when profiler on.
Obviously, the frame profiler graph isn't very useful in headless (maybe it could be?) but at least, it's nice to not have to change the .h and rebuild all kinds of files when using headless for testing.
This commit is contained in:
parent
c87b7587ce
commit
90093faffc
@ -7,6 +7,7 @@
|
||||
#include <limits>
|
||||
|
||||
#include "file/zip_read.h"
|
||||
#include "profiler/profiler.h"
|
||||
#include "Common/FileUtil.h"
|
||||
#include "Core/Config.h"
|
||||
#include "Core/Core.h"
|
||||
@ -201,6 +202,8 @@ bool RunAutoTest(HeadlessHost *headlessHost, CoreParameter &coreParameter, bool
|
||||
|
||||
int main(int argc, const char* argv[])
|
||||
{
|
||||
PROFILE_INIT();
|
||||
|
||||
#ifdef ANDROID_NDK_PROFILER
|
||||
setenv("CPUPROFILE_FREQUENCY", "500", 1);
|
||||
setenv("CPUPROFILE", "/sdcard/gmon.out", 1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user