mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 05:11:16 +00:00
Bug 1417107 - Use histogram key suffix 'unlabeled' instead of 'labeled'. r=erahm
Make unlabeled runnables be the runnables we tag with extra information, since they're the ones we want to decrease. Note: This changes values gathered for telemetry!
This commit is contained in:
parent
dccb7bcf7c
commit
54b84f70d3
@ -13199,7 +13199,7 @@
|
||||
},
|
||||
"MAIN_THREAD_RUNNABLE_MS": {
|
||||
"record_in_processes": ["main", "content", "gpu"],
|
||||
"alert_emails": ["wmccloskey@mozilla.com"],
|
||||
"alert_emails": ["wmccloskey@mozilla.com", "farre@mozilla.com"],
|
||||
"expires_in_version": "60",
|
||||
"kind": "exponential",
|
||||
"keyed": true,
|
||||
|
@ -378,7 +378,6 @@ SchedulerGroup::Runnable::GetName(nsACString& aName)
|
||||
aName.AssignLiteral("anonymous");
|
||||
}
|
||||
|
||||
aName.AppendASCII("(labeled)");
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -884,7 +884,9 @@ void canary_alarm_handler(int signum)
|
||||
|
||||
#ifndef RELEASE_OR_BETA
|
||||
static bool
|
||||
GetLabeledRunnableName(nsIRunnable* aEvent, nsACString& aName)
|
||||
GetLabeledRunnableName(nsIRunnable* aEvent,
|
||||
nsACString& aName,
|
||||
EventPriority aPriority)
|
||||
{
|
||||
bool labeled = false;
|
||||
if (RefPtr<SchedulerGroup::Runnable> groupRunnable = do_QueryObject(aEvent)) {
|
||||
@ -899,6 +901,10 @@ GetLabeledRunnableName(nsIRunnable* aEvent, nsACString& aName)
|
||||
aName.AssignLiteral("anonymous runnable");
|
||||
}
|
||||
|
||||
if (!labeled && aPriority > EventPriority::Input) {
|
||||
aName.AppendLiteral("(unlabeled)");
|
||||
}
|
||||
|
||||
return labeled;
|
||||
}
|
||||
#endif
|
||||
@ -979,7 +985,7 @@ nsThread::ProcessNextEvent(bool aMayWait, bool* aResult)
|
||||
|
||||
nsAutoCString name;
|
||||
if ((MAIN_THREAD == mIsMainThread) || mNextIdleDeadline) {
|
||||
bool labeled = GetLabeledRunnableName(event, name);
|
||||
bool labeled = GetLabeledRunnableName(event, name, priority);
|
||||
|
||||
if (MAIN_THREAD == mIsMainThread) {
|
||||
timer.emplace(name);
|
||||
|
Loading…
Reference in New Issue
Block a user