mirror of
				https://git.suyu.dev/suyu/suyu
				synced 2025-11-04 00:49:02 -06:00 
			
		
		
		
	Integrate the MicroProfile profiling library
This brings goodies such as a configurable user interface and multi-threaded timeline view.
This commit is contained in:
		@@ -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;
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user