diff options
| author | 2017-02-19 14:34:47 -0800 | |
|---|---|---|
| committer | 2017-02-26 17:22:03 -0800 | |
| commit | c75ae6c585f651a1b7c162c2e1ecccd22a1c587d (patch) | |
| tree | 30d51f39c6b57244e1ede29820c3f5d98ca38451 /src/core/core.h | |
| parent | SynchronizedWrapper: Add Lock convenience method (diff) | |
| download | yuzu-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.h | 7 |
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 | ||
| 13 | class EmuWindow; | 14 | class EmuWindow; |
| 14 | class ARM_Interface; | 15 | class 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 | |||
| 94 | private: | 99 | private: |
| 95 | /** | 100 | /** |
| 96 | * Initialize the emulated system. | 101 | * Initialize the emulated system. |