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

Commit 67045032 authored by Vova Sharaienko's avatar Vova Sharaienko Committed by Automerger Merge Worker
Browse files

Merge "[TeX] Introduced Telemetry Express Logging APIs" am: 0ffaad70 am:...

Merge "[TeX] Introduced Telemetry Express Logging APIs" am: 0ffaad70 am: fc80781a am: 14164513 am: d7f7a0e1

Original change: https://android-review.googlesource.com/c/platform/system/core/+/2494985



Change-Id: Id6e97b0849d21d5ed4589e8bdf13259dda5b6772
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents c67b1ce4 d7f7a0e1
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -28,5 +28,10 @@ void Counter::logIncrement(const char* metricName, int64_t amount) {
    stats_write(EXPRESS_EVENT_REPORTED, metricIdHash, amount);
}

void Counter::logIncrementWithUid(const char* metricName, int32_t uid, int64_t amount) {
    const int64_t metricIdHash = farmhash::Fingerprint64(metricName, strlen(metricName));
    stats_write(EXPRESS_UID_EVENT_REPORTED, metricIdHash, amount, uid);
}

}  // namespace expresslog
}  // namespace android
+2 −0
Original line number Diff line number Diff line
@@ -24,6 +24,8 @@ namespace expresslog {
class Counter final {
public:
    static void logIncrement(const char* metricId, int64_t amount = 1);

    static void logIncrementWithUid(const char* metricId, int32_t uid, int64_t amount = 1);
};

}  // namespace expresslog