Bug 1406872 - Remove perf monitoring code - r=jandem,Gijs

This patch removes the StopWatch code that was used in the first version of
about:performance, and not being used anymore.

Differential Revision: https://phabricator.services.mozilla.com/D7453
This commit is contained in:
Tarek Ziadé
2019-01-14 14:09:09 +00:00
parent b9d5496433
commit 4c0e038f18
33 changed files with 2 additions and 5859 deletions

View File

@@ -53,12 +53,6 @@
#include "nsTerminator.h"
#endif
#define MOZ_HAS_PERFSTATS
#if defined(MOZ_HAS_PERFSTATS)
#include "nsPerformanceStats.h"
#endif // defined (MOZ_HAS_PERFSTATS)
#if defined(ENABLE_TESTS)
#include "geckoview/TelemetryGeckoViewTesting.h"
#endif
@@ -69,10 +63,6 @@ using namespace mozilla;
NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nsAppStartup, Init)
#if defined(MOZ_HAS_PERFSTATS)
NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nsPerformanceStatsService, Init)
#endif // defined (MOZ_HAS_PERFSTATS)
#if defined(MOZ_HAS_TERMINATOR)
NS_GENERIC_FACTORY_CONSTRUCTOR(nsTerminator)
#endif
@@ -138,10 +128,6 @@ NS_GENERIC_FACTORY_CONSTRUCTOR(TelemetryGeckoViewTestingImpl)
#endif
NS_DEFINE_NAMED_CID(NS_TOOLKIT_APPSTARTUP_CID);
#if defined(MOZ_HAS_PERFSTATS)
NS_DEFINE_NAMED_CID(NS_TOOLKIT_PERFORMANCESTATSSERVICE_CID);
#endif // defined (MOZ_HAS_PERFSTATS)
#if defined(MOZ_HAS_TERMINATOR)
NS_DEFINE_NAMED_CID(NS_TOOLKIT_TERMINATOR_CID);
#endif
@@ -180,10 +166,6 @@ static const Module::CIDEntry kToolkitCIDs[] = {
#if defined(MOZ_HAS_TERMINATOR)
{&kNS_TOOLKIT_TERMINATOR_CID, false, nullptr, nsTerminatorConstructor},
#endif
#if defined(MOZ_HAS_PERFSTATS)
{&kNS_TOOLKIT_PERFORMANCESTATSSERVICE_CID, false, nullptr,
nsPerformanceStatsServiceConstructor},
#endif // defined (MOZ_HAS_PERFSTATS)
{&kNS_USERINFO_CID, false, nullptr, nsUserInfoConstructor},
{&kALERT_NOTIFICATION_CID, false, nullptr, AlertNotificationConstructor},
{&kNS_ALERTSSERVICE_CID, false, nullptr, nsAlertsServiceConstructor},
@@ -236,10 +218,6 @@ static const Module::ContractIDEntry kToolkitContracts[] = {
#if defined(MOZ_HAS_TERMINATOR)
{NS_TOOLKIT_TERMINATOR_CONTRACTID, &kNS_TOOLKIT_TERMINATOR_CID},
#endif
#if defined(MOZ_HAS_PERFSTATS)
{NS_TOOLKIT_PERFORMANCESTATSSERVICE_CONTRACTID,
&kNS_TOOLKIT_PERFORMANCESTATSSERVICE_CID},
#endif // defined (MOZ_HAS_PERFSTATS)
{NS_USERINFO_CONTRACTID, &kNS_USERINFO_CID},
{ALERT_NOTIFICATION_CONTRACTID, &kALERT_NOTIFICATION_CID},
{NS_ALERTSERVICE_CONTRACTID, &kNS_ALERTSSERVICE_CID},