mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 706647 - Measure plugin shutdown with telemetry. r=josh
This commit is contained in:
parent
09bd2b6a82
commit
671ce872c5
@ -3253,6 +3253,7 @@ nsPluginHost::StopPluginInstance(nsNPAPIPluginInstance* aInstance)
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
Telemetry::AutoTimer<Telemetry::PLUGIN_SHUTDOWN_MS> timer;
|
||||
aInstance->Stop();
|
||||
|
||||
// if the instance does not want to be 'cached' just remove it
|
||||
|
@ -235,6 +235,7 @@ HISTOGRAM(DNS_FAILED_LOOKUP_TIME, 1, 60000, 50, EXPONENTIAL, "Time for an unsucc
|
||||
|
||||
HISTOGRAM(FIND_PLUGINS, 1, 3000, 10, EXPONENTIAL, "Time spent scanning filesystem for plugins (ms)")
|
||||
HISTOGRAM(CHECK_JAVA_ENABLED, 1, 3000, 10, EXPONENTIAL, "Time spent checking if Java is enabled (ms)")
|
||||
HISTOGRAM(PLUGIN_SHUTDOWN_MS, 1, 5000, 20, EXPONENTIAL, "Time spent shutting down plugins (ms)")
|
||||
|
||||
/* Define 2 histograms: MOZ_SQLITE_(NAME)_MS and
|
||||
* MOZ_SQLITE_(NAME)_MAIN_THREAD_MS. These are meant to be used by
|
||||
|
Loading…
Reference in New Issue
Block a user