From 58af141dfc0915b1281c23f2dcf4e004273f0e61 Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Fri, 15 Nov 2024 12:27:07 +0100 Subject: [PATCH] Crashpad: Reduce the size of crash reports on Windows Fixes: QDS-9443 Change-Id: Ia990210bcb6f9626d9ef0930befdccd529a1c398 Reviewed-by: Tim Jenssen --- src/app/main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/app/main.cpp b/src/app/main.cpp index 37ab3633196..73b6a003514 100644 --- a/src/app/main.cpp +++ b/src/app/main.cpp @@ -443,6 +443,12 @@ void startCrashpad(const AppInfo &appInfo, bool crashReportingEnabled) annotations["sha1"] = Core::Constants::IDE_REVISION_STR; #endif + if (HostOsInfo::isWindowsHost()) { + // reduces the size of crash reports, which can be large on Windows + CrashpadInfo::GetCrashpadInfo() + ->set_gather_indirectly_referenced_memory(crashpad::TriState::kEnabled, 0); + } + // Optional arguments to pass to the handler std::vector arguments; arguments.push_back("--no-rate-limit");