telemetry: Log performance, configuration, and system data.

This commit is contained in:
bunnei 2017-07-12 22:19:34 -04:00
parent 822e8d21ea
commit df8b9863f9
5 changed files with 96 additions and 18 deletions

View file

@ -342,9 +342,11 @@ ResultStatus AppLoader_NCCH::Load() {
if (result != ResultStatus::Success)
return result;
LOG_INFO(Loader, "Program ID: %016" PRIX64, ncch_header.program_id);
std::string program_id{Common::StringFromFormat("%016" PRIX64, ncch_header.program_id)};
Core::Telemetry().AddField(Telemetry::FieldType::Session, "ProgramId", ncch_header.program_id);
LOG_INFO(Loader, "Program ID: %s", program_id.c_str());
Core::Telemetry().AddField(Telemetry::FieldType::Session, "ProgramId", program_id);
is_loaded = true; // Set state to loaded