summaryrefslogtreecommitdiff
path: root/b2g/app
diff options
context:
space:
mode:
authorPale Moon <git-repo@palemoon.org>2015-04-29 14:27:54 +0200
committerPale Moon <git-repo@palemoon.org>2015-04-29 14:27:54 +0200
commitf74b1e6916b0b4ca216ed751cdadb6f59cba4a7c (patch)
treea834ae886d5cef212c75576fb41e75609a3bc44b /b2g/app
parentf4e1a33943ace4f01834c49ef055afab0620eaa4 (diff)
parent62379c84d7b7adeabacb3074480329a1778ac5ab (diff)
downloadpalemoon-gre-f74b1e6916b0b4ca216ed751cdadb6f59cba4a7c.tar.gz
Merge branch 'master' into Harmony-work
Diffstat (limited to 'b2g/app')
-rw-r--r--b2g/app/nsBrowserApp.cpp25
1 files changed, 0 insertions, 25 deletions
diff --git a/b2g/app/nsBrowserApp.cpp b/b2g/app/nsBrowserApp.cpp
index a9865d0a3..cfcff3b34 100644
--- a/b2g/app/nsBrowserApp.cpp
+++ b/b2g/app/nsBrowserApp.cpp
@@ -95,7 +95,6 @@ XRE_FreeAppDataType XRE_FreeAppData;
#ifdef XRE_HAS_DLL_BLOCKLIST
XRE_SetupDllBlocklistType XRE_SetupDllBlocklist;
#endif
-XRE_TelemetryAccumulateType XRE_TelemetryAccumulate;
XRE_mainType XRE_main;
static const nsDynamicFunctionLoad kXULFuncs[] = {
@@ -231,30 +230,6 @@ int main(int argc, char* argv[])
XRE_SetupDllBlocklist();
#endif
- if (gotCounters) {
-#if defined(XP_WIN)
- XRE_TelemetryAccumulate(mozilla::Telemetry::EARLY_GLUESTARTUP_READ_OPS,
- int(ioCounters.ReadOperationCount));
- XRE_TelemetryAccumulate(mozilla::Telemetry::EARLY_GLUESTARTUP_READ_TRANSFER,
- int(ioCounters.ReadTransferCount / 1024));
- IO_COUNTERS newIoCounters;
- if (GetProcessIoCounters(GetCurrentProcess(), &newIoCounters)) {
- XRE_TelemetryAccumulate(mozilla::Telemetry::GLUESTARTUP_READ_OPS,
- int(newIoCounters.ReadOperationCount - ioCounters.ReadOperationCount));
- XRE_TelemetryAccumulate(mozilla::Telemetry::GLUESTARTUP_READ_TRANSFER,
- int((newIoCounters.ReadTransferCount - ioCounters.ReadTransferCount) / 1024));
- }
-#elif defined(XP_UNIX)
- XRE_TelemetryAccumulate(mozilla::Telemetry::EARLY_GLUESTARTUP_HARD_FAULTS,
- int(initialRUsage.ru_majflt));
- struct rusage newRUsage;
- if (!getrusage(RUSAGE_SELF, &newRUsage)) {
- XRE_TelemetryAccumulate(mozilla::Telemetry::GLUESTARTUP_HARD_FAULTS,
- int(newRUsage.ru_majflt - initialRUsage.ru_majflt));
- }
-#endif
- }
-
int result;
{
ScopedLogging log;