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
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue