summaryrefslogtreecommitdiff
path: root/src/core/core.h
diff options
context:
space:
mode:
authorGravatar Yuri Kunde Schlesner2017-02-19 14:34:47 -0800
committerGravatar Yuri Kunde Schlesner2017-02-26 17:22:03 -0800
commitc75ae6c585f651a1b7c162c2e1ecccd22a1c587d (patch)
tree30d51f39c6b57244e1ede29820c3f5d98ca38451 /src/core/core.h
parentSynchronizedWrapper: Add Lock convenience method (diff)
downloadyuzu-c75ae6c585f651a1b7c162c2e1ecccd22a1c587d.tar.gz
yuzu-c75ae6c585f651a1b7c162c2e1ecccd22a1c587d.tar.xz
yuzu-c75ae6c585f651a1b7c162c2e1ecccd22a1c587d.zip
Add performance statistics to status bar
Diffstat (limited to 'src/core/core.h')
-rw-r--r--src/core/core.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/core/core.h b/src/core/core.h
index 17572a74f..3efc20c3d 100644
--- a/src/core/core.h
+++ b/src/core/core.h
@@ -6,9 +6,10 @@
6 6
7#include <memory> 7#include <memory>
8#include <string> 8#include <string>
9
10#include "common/common_types.h" 9#include "common/common_types.h"
10#include "common/synchronized_wrapper.h"
11#include "core/memory.h" 11#include "core/memory.h"
12#include "core/perf_stats.h"
12 13
13class EmuWindow; 14class EmuWindow;
14class ARM_Interface; 15class ARM_Interface;
@@ -83,6 +84,8 @@ public:
83 /// Prepare the core emulation for a reschedule 84 /// Prepare the core emulation for a reschedule
84 void PrepareReschedule(); 85 void PrepareReschedule();
85 86
87 PerfStats::Results GetAndResetPerfStats();
88
86 /** 89 /**
87 * Gets a reference to the emulated CPU. 90 * Gets a reference to the emulated CPU.
88 * @returns A reference to the emulated CPU. 91 * @returns A reference to the emulated CPU.
@@ -91,6 +94,8 @@ public:
91 return *cpu_core; 94 return *cpu_core;
92 } 95 }
93 96
97 Common::SynchronizedWrapper<PerfStats> perf_stats;
98
94private: 99private:
95 /** 100 /**
96 * Initialize the emulated system. 101 * Initialize the emulated system.