mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 10:13:15 +02:00
Add main thread id & machine fingerprint to crashpad annotations
This commit is contained in:
parent
e25c6c5316
commit
84601446bf
2 changed files with 5 additions and 0 deletions
|
@ -283,7 +283,9 @@ public:
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void initialize() {
|
void initialize() {
|
||||||
|
setObjectName("Render");
|
||||||
PROFILE_SET_THREAD_NAME("Render");
|
PROFILE_SET_THREAD_NAME("Render");
|
||||||
|
setCrashAnnotation("render_thread_id", std::to_string((size_t)QThread::currentThreadId()));
|
||||||
if (!_renderContext->makeCurrent()) {
|
if (!_renderContext->makeCurrent()) {
|
||||||
qFatal("Unable to make rendering context current on render thread");
|
qFatal("Unable to make rendering context current on render thread");
|
||||||
}
|
}
|
||||||
|
@ -1099,6 +1101,7 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo
|
||||||
_logger->setSessionID(accountManager->getSessionID());
|
_logger->setSessionID(accountManager->getSessionID());
|
||||||
|
|
||||||
setCrashAnnotation("metaverse_session_id", accountManager->getSessionID().toString().toStdString());
|
setCrashAnnotation("metaverse_session_id", accountManager->getSessionID().toString().toStdString());
|
||||||
|
setCrashAnnotation("main_thread_id", std::to_string((size_t)QThread::currentThreadId()));
|
||||||
|
|
||||||
if (steamClient) {
|
if (steamClient) {
|
||||||
qCDebug(interfaceapp) << "[VERSION] SteamVR buildID:" << steamClient->getSteamVRBuildID();
|
qCDebug(interfaceapp) << "[VERSION] SteamVR buildID:" << steamClient->getSteamVRBuildID();
|
||||||
|
@ -1440,6 +1443,7 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo
|
||||||
Setting::Handle<bool> firstRun { Settings::firstRun, true };
|
Setting::Handle<bool> firstRun { Settings::firstRun, true };
|
||||||
|
|
||||||
QString machineFingerPrint = uuidStringWithoutCurlyBraces(FingerprintUtils::getMachineFingerprint());
|
QString machineFingerPrint = uuidStringWithoutCurlyBraces(FingerprintUtils::getMachineFingerprint());
|
||||||
|
setCrashAnnotation("machine_fingerprint", machineFingerPrint.toStdString());
|
||||||
|
|
||||||
auto& userActivityLogger = UserActivityLogger::getInstance();
|
auto& userActivityLogger = UserActivityLogger::getInstance();
|
||||||
if (userActivityLogger.isEnabled()) {
|
if (userActivityLogger.isEnabled()) {
|
||||||
|
|
|
@ -83,6 +83,7 @@ public:
|
||||||
connect(qApp, &QCoreApplication::aboutToQuit, [this] {
|
connect(qApp, &QCoreApplication::aboutToQuit, [this] {
|
||||||
shutdown();
|
shutdown();
|
||||||
});
|
});
|
||||||
|
setObjectName("Present");
|
||||||
}
|
}
|
||||||
|
|
||||||
~PresentThread() {
|
~PresentThread() {
|
||||||
|
|
Loading…
Reference in a new issue