Closed Bug 1958863 Opened 1 year ago Closed 1 year ago

Cleanup traces of the legacy telemetry histogram API in geckoview

Categories

(GeckoView :: General, task)

All
Android
task

Tracking

(firefox141 fixed)

RESOLVED FIXED
141 Branch
Tracking Status
firefox141 --- fixed

People

(Reporter: florian, Assigned: calu)

References

Details

(Keywords: good-first-bug, Whiteboard: [fxdroid][group4])

Attachments

(1 file)

widget/android/Telemetry.h implements an AddHistogram method that forwards data to Glean:

  static void AddHistogram(jni::String::Param aName, int32_t aValue) {
    MOZ_ASSERT(aName);
    nsCString name = aName->ToCString();
    if (name.EqualsLiteral("GV_STARTUP_RUNTIME_MS")) {
      glean::geckoview::startup_runtime.AccumulateRawDuration(
          TimeDuration::FromMilliseconds(aValue));
    } else if (name.EqualsLiteral("GV_CONTENT_PROCESS_LIFETIME_MS")) {
      glean::geckoview::content_process_lifetime.AccumulateRawDuration(
          TimeDuration::FromMilliseconds(aValue));
    }
  }

This is then called from https://searchfox.org/mozilla-central/rev/380b8fd795e7d96d8a5a3e6ec2b50a9f2b65854a/mobile/android/geckoview/src/main/java/org/mozilla/gecko/TelemetryUtils.java#21,24-25,35-44 which is used twice:

No longer blocks: 1956726
Depends on: 1956726
Keywords: good-first-bug
Severity: -- → N/A
Assignee: nobody → calu
Whiteboard: [fxdroid][group4]
Pushed by calu@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/05d6f5429d64 https://hg.mozilla.org/integration/autoland/rev/194f39a91a16 Remove legacy telemetry API from geckoview r=geckoview-reviewers,chutten,owlish,nalexander
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 141 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: