diff options
author | bunnei <bunneidev@gmail.com> | 2017-05-02 06:09:15 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2017-05-25 01:16:22 +0200 |
commit | f3e14cae1e644b7e072796f2c26eab67b7a5d1b7 (patch) | |
tree | 27a0b689d399425f54e1559c64a8cf935ce81c5e /src/core/core.h | |
parent | common: Add a generic interface for logging telemetry fields. (diff) | |
download | yuzu-f3e14cae1e644b7e072796f2c26eab67b7a5d1b7.tar yuzu-f3e14cae1e644b7e072796f2c26eab67b7a5d1b7.tar.gz yuzu-f3e14cae1e644b7e072796f2c26eab67b7a5d1b7.tar.bz2 yuzu-f3e14cae1e644b7e072796f2c26eab67b7a5d1b7.tar.lz yuzu-f3e14cae1e644b7e072796f2c26eab67b7a5d1b7.tar.xz yuzu-f3e14cae1e644b7e072796f2c26eab67b7a5d1b7.tar.zst yuzu-f3e14cae1e644b7e072796f2c26eab67b7a5d1b7.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/core.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/core/core.h b/src/core/core.h index 6c9c936b5..6af772831 100644 --- a/src/core/core.h +++ b/src/core/core.h @@ -9,6 +9,7 @@ #include "common/common_types.h" #include "core/memory.h" #include "core/perf_stats.h" +#include "core/telemetry_session.h" class EmuWindow; class ARM_Interface; @@ -80,6 +81,14 @@ public: return cpu_core != nullptr; } + /** + * Returns a reference to the telemetry session for this emulation session. + * @returns Reference to the telemetry session. + */ + Core::TelemetrySession& TelemetrySession() const { + return *telemetry_session; + } + /// Prepare the core emulation for a reschedule void PrepareReschedule(); @@ -117,6 +126,9 @@ private: /// When true, signals that a reschedule should happen bool reschedule_pending{}; + /// Telemetry session for this emulation session + std::unique_ptr<Core::TelemetrySession> telemetry_session; + static System s_instance; }; @@ -124,4 +136,8 @@ inline ARM_Interface& CPU() { return System::GetInstance().CPU(); } +inline TelemetrySession& Telemetry() { + return System::GetInstance().TelemetrySession(); +} + } // namespace Core |