Crashpad: Reduce the size of crash reports on Windows

Fixes: QDS-9443
Change-Id: Ia990210bcb6f9626d9ef0930befdccd529a1c398
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Eike Ziller
2024-11-15 12:27:07 +01:00
committed by Tim Jenssen
parent 0eb99f5498
commit 58af141dfc

View File

@@ -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<std::string> arguments;
arguments.push_back("--no-rate-limit");