Some tweaks to profiler2:

* separate the HTTP profiling server from the on-screen profiler
* allow shutting down the HTTP profiler
* print messages when enabling/disabling HTTP and GPU profilers

Patch by kingbasil, fixes #1862

This was SVN commit r15723.
This commit is contained in:
Itms
2014-09-09 18:17:08 +00:00
parent bdd8bc1f44
commit 7ada7dd2a8
5 changed files with 48 additions and 10 deletions
+2 -3
View File
@@ -161,10 +161,9 @@ static InReaction MainInputHandler(const SDL_Event_* ev)
#endif
return IN_HANDLED;
}
else if (hotkey == "profile2.enable")
else if (hotkey == "profile2.toggle")
{
g_Profiler2.EnableGPU();
g_Profiler2.EnableHTTP();
g_Profiler2.Toggle();
return IN_HANDLED;
}
break;