Bug 706647 - Measure plugin shutdown with telemetry. r=josh

This commit is contained in:
Nathan Froyd 2012-02-28 15:29:42 -05:00
parent 09bd2b6a82
commit 671ce872c5
2 changed files with 2 additions and 0 deletions

View File

@ -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

View File

@ -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