anr: add config for ping number before popup shows up (#9782)

* anr: make pings configurable

makes the pings of the dialog popup configurable
This commit is contained in:
nyx 2025-03-31 12:06:17 -04:00 committed by GitHub
parent 79b526a041
commit 2309270752
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 16 additions and 6 deletions

View file

@ -1223,6 +1223,12 @@ inline static const std::vector<SConfigOptionDescription> CONFIG_OPTIONS = {
.type = CONFIG_OPTION_BOOL,
.data = SConfigOptionDescription::SBoolData{true},
},
SConfigOptionDescription{
.value = "misc:anr_missed_pings",
.description = "number of missed pings before showing the ANR dialog",
.type = CONFIG_OPTION_INT,
.data = SConfigOptionDescription::SRangeData{1, 1, 10},
},
/*
* binds: