Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d953cfb2 authored by Jernej Virag's avatar Jernej Virag
Browse files

Enable listener for statsd notification memory collection

This reenables registration for notification memory collection. To
actually collect the data, server-side flag rollout still needs to
happen.

Bug: 290620219
Test: unit tests covering the class, manually checked on panther
      to verify no crashes
Change-Id: If58bf46a676b3ea39b47a962853cc5484b9c2054
parent 8fd9d557
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -62,11 +62,12 @@ object Flags {
    val INSTANT_VOICE_REPLY = unreleasedFlag(111, "instant_voice_reply")

    /**
     * This flag is server-controlled and should stay as [unreleasedFlag] since we never want to
     * enable it on release builds.
     * This flag controls whether we register a listener for StatsD notification memory reports.
     * For statsd to actually call the listener however, a server-side toggle needs to be
     * enabled as well.
     */
    val NOTIFICATION_MEMORY_LOGGING_ENABLED =
        unreleasedFlag(119, "notification_memory_logging_enabled")
            releasedFlag(119, "notification_memory_logging_enabled")

    // TODO(b/260335638): Tracking Bug
    @JvmField