Integrate the MicroProfile profiling library
This brings goodies such as a configurable user interface and multi-threaded timeline view.
This commit is contained in:
parent
c7745408f7
commit
0fcabd2b11
24 changed files with 11142 additions and 0 deletions
|
@ -14,6 +14,7 @@
|
|||
#include "common/string_util.h"
|
||||
#include "common/scm_rev.h"
|
||||
#include "common/key_map.h"
|
||||
#include "common/microprofile.h"
|
||||
|
||||
#include "core/core.h"
|
||||
#include "core/settings.h"
|
||||
|
@ -37,6 +38,8 @@ EmuThread::EmuThread(GRenderWindow* render_window) :
|
|||
void EmuThread::run() {
|
||||
render_window->MakeCurrent();
|
||||
|
||||
MicroProfileOnThreadCreate("EmuThread");
|
||||
|
||||
stop_run = false;
|
||||
|
||||
// holds whether the cpu was running during the last iteration,
|
||||
|
@ -69,6 +72,8 @@ void EmuThread::run() {
|
|||
}
|
||||
}
|
||||
|
||||
MicroProfileOnThreadExit();
|
||||
|
||||
render_window->moveContext();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue