mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-09 01:08:39 +09:00
Remove all C++ Telemetry Accumulation calls.
This creates a number of stubs and leaves some surrounding code that may be irrelevant (eg. recorded time stamps, status variables). Stub resolution/removal should be a follow-up to this.
This commit is contained in:
parent
ac3468d5cc
commit
8c8145e620
186 changed files with 48 additions and 2957 deletions
|
|
@ -758,11 +758,6 @@ nsAppStartup::GetStartupInfo(JSContext* aCx, JS::MutableHandle<JS::Value> aRetva
|
|||
|
||||
procTime = TimeStamp::ProcessCreation(error);
|
||||
|
||||
if (error) {
|
||||
Telemetry::Accumulate(Telemetry::STARTUP_MEASUREMENT_ERRORS,
|
||||
StartupTimeline::PROCESS_CREATION);
|
||||
}
|
||||
|
||||
StartupTimeline::Record(StartupTimeline::PROCESS_CREATION, procTime);
|
||||
}
|
||||
|
||||
|
|
@ -777,8 +772,6 @@ nsAppStartup::GetStartupInfo(JSContext* aCx, JS::MutableHandle<JS::Value> aRetva
|
|||
// Always define main to aid with bug 689256.
|
||||
stamp = procTime;
|
||||
MOZ_ASSERT(!stamp.IsNull());
|
||||
Telemetry::Accumulate(Telemetry::STARTUP_MEASUREMENT_ERRORS,
|
||||
StartupTimeline::MAIN);
|
||||
}
|
||||
|
||||
if (!stamp.IsNull()) {
|
||||
|
|
@ -787,8 +780,6 @@ nsAppStartup::GetStartupInfo(JSContext* aCx, JS::MutableHandle<JS::Value> aRetva
|
|||
/ PR_USEC_PER_MSEC;
|
||||
JS::Rooted<JSObject*> date(aCx, JS::NewDateObject(aCx, JS::TimeClip(prStamp)));
|
||||
JS_DefineProperty(aCx, obj, StartupTimeline::Describe(ev), date, JSPROP_ENUMERATE);
|
||||
} else {
|
||||
Telemetry::Accumulate(Telemetry::STARTUP_MEASUREMENT_ERRORS, ev);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -887,9 +878,6 @@ nsAppStartup::TrackStartupCrashBegin(bool *aIsSafeModeNecessary)
|
|||
if (PR_Now() / PR_USEC_PER_SEC <= lastSuccessfulStartup)
|
||||
return NS_ERROR_FAILURE;
|
||||
|
||||
// The last startup was a crash so include it in the count regardless of when it happened.
|
||||
Telemetry::Accumulate(Telemetry::STARTUP_CRASH_DETECTED, true);
|
||||
|
||||
if (inSafeMode) {
|
||||
GetAutomaticSafeModeNecessary(aIsSafeModeNecessary);
|
||||
return NS_OK;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue