History

Add main thread id & machine fingerprint to crashpad annotations

Anthony J. Thibault committed 8 years ago

Commit 84601441 parent e25c6c52 files · +5 −0Browse files

Showing the changes to interface/src/Application.cpp (1 of 2 files). Show all

Unified · Split

interface/src/Application.cpp+4−0
@@ -283,7 +283,9 @@ public: · 282 unmodified lines
283283
284284 private:
285285 void initialize() {
286+ setObjectName("Render");
286287 PROFILE_SET_THREAD_NAME("Render");
288+ setCrashAnnotation("render_thread_id", std::to_string((size_t)QThread::currentThreadId()));
287289 if (!_renderContext->makeCurrent()) {
288290 qFatal("Unable to make rendering context current on render thread");
289291 }
@@ -1099,6 +1101,7 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo · 809 unmodified lines
10991101 _logger->setSessionID(accountManager->getSessionID());
11001102
11011103 setCrashAnnotation("metaverse_session_id", accountManager->getSessionID().toString().toStdString());
1104+ setCrashAnnotation("main_thread_id", std::to_string((size_t)QThread::currentThreadId()));
11021105
11031106 if (steamClient) {
11041107 qCDebug(interfaceapp) << "[VERSION] SteamVR buildID:" << steamClient->getSteamVRBuildID();
@@ -1440,6 +1443,7 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo · 335 unmodified lines
14401443 Setting::Handle<bool> firstRun { Settings::firstRun, true };
14411444
14421445 QString machineFingerPrint = uuidStringWithoutCurlyBraces(FingerprintUtils::getMachineFingerprint());
1446+ setCrashAnnotation("machine_fingerprint", machineFingerPrint.toStdString());
14431447
14441448 auto& userActivityLogger = UserActivityLogger::getInstance();
14451449 if (userActivityLogger.isEnabled()) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t