diff options
author | Zach Hilman <DarkLordZach@users.noreply.github.com> | 2019-06-05 21:57:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-05 21:57:48 +0200 |
commit | 799302bc9d6edade951cf7746314d96d440c823c (patch) | |
tree | 0fd074d6ab32ef2b2590bdd0c21302784976d653 /src/core/telemetry_session.h | |
parent | Merge pull request #2545 from lioncash/timing (diff) | |
parent | core/core: Remove unnecessary includes (diff) | |
download | yuzu-799302bc9d6edade951cf7746314d96d440c823c.tar yuzu-799302bc9d6edade951cf7746314d96d440c823c.tar.gz yuzu-799302bc9d6edade951cf7746314d96d440c823c.tar.bz2 yuzu-799302bc9d6edade951cf7746314d96d440c823c.tar.lz yuzu-799302bc9d6edade951cf7746314d96d440c823c.tar.xz yuzu-799302bc9d6edade951cf7746314d96d440c823c.tar.zst yuzu-799302bc9d6edade951cf7746314d96d440c823c.zip |
Diffstat (limited to 'src/core/telemetry_session.h')
-rw-r--r-- | src/core/telemetry_session.h | 31 |
1 files changed, 28 insertions, 3 deletions
diff --git a/src/core/telemetry_session.h b/src/core/telemetry_session.h index cae5a45a0..17ac22377 100644 --- a/src/core/telemetry_session.h +++ b/src/core/telemetry_session.h @@ -4,10 +4,13 @@ #pragma once -#include <memory> #include <string> #include "common/telemetry.h" +namespace Loader { +class AppLoader; +} + namespace Core { /** @@ -15,11 +18,33 @@ namespace Core { * session, logging any one-time fields. Interfaces with the telemetry backend used for submitting * data to the web service. Submits session data on close. */ -class TelemetrySession : NonCopyable { +class TelemetrySession { public: - TelemetrySession(); + explicit TelemetrySession(); ~TelemetrySession(); + TelemetrySession(const TelemetrySession&) = delete; + TelemetrySession& operator=(const TelemetrySession&) = delete; + + TelemetrySession(TelemetrySession&&) = delete; + TelemetrySession& operator=(TelemetrySession&&) = delete; + + /** + * Adds the initial telemetry info necessary when starting up a title. + * + * This includes information such as: + * - Telemetry ID + * - Initialization time + * - Title ID + * - Title name + * - Title file format + * - Miscellaneous settings values. + * + * @param app_loader The application loader to use to retrieve + * title-specific information. + */ + void AddInitialInfo(Loader::AppLoader& app_loader); + /** * Wrapper around the Telemetry::FieldCollection::AddField method. * @param type Type of the field to add. |