[FCM] Report number of queued messages using CachedMetrics
This CL uses CachedMetric to record the histogram for number of queued messages instead of using RecordHistogram directly. RecordHistogram call native directly and hence falsifies the whole purpose of queuing FCM messages (to avoid calling the native code) In order to test the behavior, ShadowRecordHistogram had to implement the method recordCustomCountHistogram() of RecordHistogram. The reason is CachedMetric is internally using this method directly instead of the proxy methods such as recordCount100Histogram(). Bug: 882887 Change-Id: I15e9e77ab96cf65084242443a1a134c5df00f7fd Reviewed-on: https://chromium-review.googlesource.com/c/1340000Reviewed-by:Peter Conn <peconn@chromium.org> Reviewed-by:
Peter Beverloo <peter@chromium.org> Reviewed-by:
Tommy Nyquist <nyquist@chromium.org> Commit-Queue: Mohamed Amir Yosef <mamir@chromium.org> Cr-Commit-Position: refs/heads/master@{#608879}
Showing
Please register or sign in to comment