Add performance statistics to status bar

This commit is contained in:
Yuri Kunde Schlesner 2017-02-19 14:34:47 -08:00
parent 21f4f49c7a
commit c75ae6c585
11 changed files with 159 additions and 3 deletions

View file

@ -6,9 +6,10 @@
#include <memory>
#include <string>
#include "common/common_types.h"
#include "common/synchronized_wrapper.h"
#include "core/memory.h"
#include "core/perf_stats.h"
class EmuWindow;
class ARM_Interface;
@ -83,6 +84,8 @@ public:
/// Prepare the core emulation for a reschedule
void PrepareReschedule();
PerfStats::Results GetAndResetPerfStats();
/**
* Gets a reference to the emulated CPU.
* @returns A reference to the emulated CPU.
@ -91,6 +94,8 @@ public:
return *cpu_core;
}
Common::SynchronizedWrapper<PerfStats> perf_stats;
private:
/**
* Initialize the emulated system.