Integrate the MicroProfile profiling library

This brings goodies such as a configurable user interface and
multi-threaded timeline view.
This commit is contained in:
Yuri Kunde Schlesner 2015-08-17 18:25:21 -03:00
parent c7745408f7
commit 0fcabd2b11
24 changed files with 11142 additions and 0 deletions

View file

@ -6,6 +6,9 @@
#include <thread>
#include <iostream>
// This needs to be included before getopt.h because the latter #defines symbols used by it
#include "common/microprofile.h"
#ifdef _MSC_VER
#include <getopt.h>
#else
@ -59,6 +62,8 @@ int main(int argc, char **argv) {
Log::Filter log_filter(Log::Level::Debug);
Log::SetFilter(&log_filter);
MicroProfileOnThreadCreate("EmuThread");
if (boot_filename.empty()) {
LOG_CRITICAL(Frontend, "Failed to load ROM: No ROM specified");
return -1;
@ -89,5 +94,7 @@ int main(int argc, char **argv) {
delete emu_window;
MicroProfileShutdown();
return 0;
}