telemetry: Log a few simple data fields throughout core.

This commit is contained in:
bunnei 2017-05-02 00:10:04 -04:00
parent f3e14cae1e
commit 120b00fb1a
3 changed files with 22 additions and 1 deletions

View file

@ -9,6 +9,7 @@
#include "common/logging/log.h"
#include "common/string_util.h"
#include "common/swap.h"
#include "core/core.h"
#include "core/file_sys/archive_selfncch.h"
#include "core/hle/kernel/process.h"
#include "core/hle/kernel/resource_limit.h"
@ -339,6 +340,8 @@ ResultStatus AppLoader_NCCH::Load() {
LOG_INFO(Loader, "Program ID: %016" PRIX64, ncch_header.program_id);
Core::Telemetry().AddField(Telemetry::FieldType::Session, "ProgramId", ncch_header.program_id);
is_loaded = true; // Set state to loaded
result = LoadExec(); // Load the executable into memory for booting