Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1013)

Issue 2320473002: Make UMA stats creation available in the Java interface. (Closed)

Created:
4 years, 3 months ago by sakal
Modified:
4 years, 3 months ago
Reviewers:
magjed_webrtc, tommi
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Make UMA stats creation available in the Java interface. Only has counts stats right now but enumeration stats can easily be added in the future if needed. BUG=webrtc:6313 Committed: https://crrev.com/2a5f371df3c5211ea4e1dd7f155e490b2e4bcc7b Cr-Commit-Position: refs/heads/master@{#14146}

Patch Set 1 : Make UMA stats creation available in Java interface. #

Patch Set 2 : New approach that doesn't involve macros #

Total comments: 5

Patch Set 3 : Use jlongFromPointer. #

Patch Set 4 : Move HistogramAdd from metrics.h to metrics_default.h. #

Total comments: 2

Patch Set 5 : Remove logged version of addSample. #

Patch Set 6 : Also update the example. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -1 line) Patch
M webrtc/api/android/java/src/org/webrtc/Metrics.java View 1 2 3 4 5 2 chunks +32 lines, -0 lines 0 comments Download
M webrtc/api/android/jni/androidmetrics_jni.cc View 1 2 2 chunks +17 lines, -1 line 0 comments Download
M webrtc/system_wrappers/include/metrics_default.h View 1 2 3 2 chunks +7 lines, -0 lines 0 comments Download
M webrtc/system_wrappers/source/metrics_default.cc View 1 1 chunk +9 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 41 (20 generated)
sakal
PTAL
4 years, 3 months ago (2016-09-07 09:14:59 UTC) #6
magjed_webrtc
Maybe a different approach would be better. How about wrapping only the base interface in ...
4 years, 3 months ago (2016-09-07 11:17:31 UTC) #8
magjed_webrtc
BTW, do you have a bug number for this? Maybe we should discuss the design ...
4 years, 3 months ago (2016-09-07 11:18:34 UTC) #9
sakal
I agree with wrapping the three functions and implementing the rest in Java. I added ...
4 years, 3 months ago (2016-09-07 11:20:38 UTC) #11
sakal
I agree with wrapping the three functions and implementing the rest in Java. I added ...
4 years, 3 months ago (2016-09-07 11:20:39 UTC) #12
sakal
PTAL
4 years, 3 months ago (2016-09-08 07:51:57 UTC) #14
magjed_webrtc
https://codereview.webrtc.org/2320473002/diff/40001/webrtc/api/android/jni/androidmetrics_jni.cc File webrtc/api/android/jni/androidmetrics_jni.cc (right): https://codereview.webrtc.org/2320473002/diff/40001/webrtc/api/android/jni/androidmetrics_jni.cc#newcode65 webrtc/api/android/jni/androidmetrics_jni.cc:65: return (jlong)webrtc::metrics::HistogramFactoryGetCounts(name, min, max, Use jlongFromPointer when converting a ...
4 years, 3 months ago (2016-09-08 10:19:54 UTC) #15
sakal
https://codereview.webrtc.org/2320473002/diff/40001/webrtc/api/android/jni/androidmetrics_jni.cc File webrtc/api/android/jni/androidmetrics_jni.cc (right): https://codereview.webrtc.org/2320473002/diff/40001/webrtc/api/android/jni/androidmetrics_jni.cc#newcode65 webrtc/api/android/jni/androidmetrics_jni.cc:65: return (jlong)webrtc::metrics::HistogramFactoryGetCounts(name, min, max, On 2016/09/08 10:19:54, magjed_webrtc wrote: ...
4 years, 3 months ago (2016-09-08 11:20:29 UTC) #16
magjed_webrtc
https://codereview.webrtc.org/2320473002/diff/40001/webrtc/api/android/jni/androidmetrics_jni.cc File webrtc/api/android/jni/androidmetrics_jni.cc (right): https://codereview.webrtc.org/2320473002/diff/40001/webrtc/api/android/jni/androidmetrics_jni.cc#newcode71 webrtc/api/android/jni/androidmetrics_jni.cc:71: HistogramAdd(reinterpret_cast<webrtc::metrics::Histogram*>(histogram), On 2016/09/08 11:20:29, sakal wrote: > On 2016/09/08 ...
4 years, 3 months ago (2016-09-08 11:53:29 UTC) #17
sakal
On 2016/09/08 11:53:29, magjed_webrtc wrote: > https://codereview.webrtc.org/2320473002/diff/40001/webrtc/api/android/jni/androidmetrics_jni.cc > File webrtc/api/android/jni/androidmetrics_jni.cc (right): > > https://codereview.webrtc.org/2320473002/diff/40001/webrtc/api/android/jni/androidmetrics_jni.cc#newcode71 > ...
4 years, 3 months ago (2016-09-08 12:29:26 UTC) #18
magjed_webrtc
lgtm
4 years, 3 months ago (2016-09-08 13:51:15 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2320473002/80001
4 years, 3 months ago (2016-09-08 14:01:51 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: presubmit on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/presubmit/builds/8188)
4 years, 3 months ago (2016-09-08 14:11:37 UTC) #26
sakal
PTAL
4 years, 3 months ago (2016-09-08 14:12:54 UTC) #28
tommi
https://codereview.webrtc.org/2320473002/diff/80001/webrtc/api/android/java/src/org/webrtc/Metrics.java File webrtc/api/android/java/src/org/webrtc/Metrics.java (right): https://codereview.webrtc.org/2320473002/diff/80001/webrtc/api/android/java/src/org/webrtc/Metrics.java#newcode88 webrtc/api/android/java/src/org/webrtc/Metrics.java:88: public void addSampleLogged(int sample) { my gut feeling is ...
4 years, 3 months ago (2016-09-08 14:45:26 UTC) #29
tommi
lgtm. I like the ideas we talked about on improving the C++ implementation we have ...
4 years, 3 months ago (2016-09-08 15:01:37 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2320473002/120001
4 years, 3 months ago (2016-09-08 15:02:54 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_rel on master.tryserver.webrtc (JOB_TIMED_OUT, no build URL) android_dbg on ...
4 years, 3 months ago (2016-09-08 17:03:25 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2320473002/120001
4 years, 3 months ago (2016-09-09 07:03:34 UTC) #37
commit-bot: I haz the power
Committed patchset #6 (id:120001)
4 years, 3 months ago (2016-09-09 07:11:53 UTC) #39
commit-bot: I haz the power
4 years, 3 months ago (2016-09-09 07:11:58 UTC) #41
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/2a5f371df3c5211ea4e1dd7f155e490b2e4bcc7b
Cr-Commit-Position: refs/heads/master@{#14146}

Powered by Google App Engine
This is Rietveld 408576698