diff options
author | bunnei <bunneidev@gmail.com> | 2017-07-09 19:49:51 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2017-07-12 00:33:40 +0200 |
commit | 8af3ebb149b057b40bc4efd5bae2b9cb70b2066c (patch) | |
tree | 3625b4fe08f9c336879f244a298305c058cff1d2 /src | |
parent | web_service: Implement JSON serialization of telemetry data. (diff) | |
download | yuzu-8af3ebb149b057b40bc4efd5bae2b9cb70b2066c.tar yuzu-8af3ebb149b057b40bc4efd5bae2b9cb70b2066c.tar.gz yuzu-8af3ebb149b057b40bc4efd5bae2b9cb70b2066c.tar.bz2 yuzu-8af3ebb149b057b40bc4efd5bae2b9cb70b2066c.tar.lz yuzu-8af3ebb149b057b40bc4efd5bae2b9cb70b2066c.tar.xz yuzu-8af3ebb149b057b40bc4efd5bae2b9cb70b2066c.tar.zst yuzu-8af3ebb149b057b40bc4efd5bae2b9cb70b2066c.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/telemetry_session.cpp | 4 | ||||
-rw-r--r-- | src/web_service/telemetry_json.cpp | 2 | ||||
-rw-r--r-- | src/web_service/telemetry_json.h | 2 |
3 files changed, 3 insertions, 5 deletions
diff --git a/src/core/telemetry_session.cpp b/src/core/telemetry_session.cpp index ddc8b262e..1ba0a698d 100644 --- a/src/core/telemetry_session.cpp +++ b/src/core/telemetry_session.cpp @@ -6,12 +6,12 @@ #include "common/scm_rev.h" #include "core/telemetry_session.h" +#include "web_services/telemetry_json.h" namespace Core { TelemetrySession::TelemetrySession() { - // TODO(bunnei): Replace with a backend that logs to our web service - backend = std::make_unique<Telemetry::NullVisitor>(); + backend = std::make_unique<WebService::TelemetryJson>(); // Log one-time session start information const auto duration{std::chrono::steady_clock::now().time_since_epoch()}; diff --git a/src/web_service/telemetry_json.cpp b/src/web_service/telemetry_json.cpp index c61522ff1..a2d007e77 100644 --- a/src/web_service/telemetry_json.cpp +++ b/src/web_service/telemetry_json.cpp @@ -9,8 +9,6 @@ namespace WebService { -TelemetryJson::TelemetryJson() {} - template <class T> void TelemetryJson::Serialize(Telemetry::FieldType type, const std::string& name, T value) { sections[static_cast<u8>(type)][name] = value; diff --git a/src/web_service/telemetry_json.h b/src/web_service/telemetry_json.h index cc511cdd1..39038b4f9 100644 --- a/src/web_service/telemetry_json.h +++ b/src/web_service/telemetry_json.h @@ -17,7 +17,7 @@ namespace WebService { */ class TelemetryJson : public Telemetry::VisitorInterface { public: - TelemetryJson(); + TelemetryJson() = default; ~TelemetryJson() = default; void Visit(const Telemetry::Field<bool>& field) override; |