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

Issue 2654473002: Remove static locals from histograms. (Closed)

Created:
3 years, 11 months ago by pbos-webrtc
Modified:
3 years, 6 months ago
Reviewers:
tommi
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com, zhuangzesen_agora.io, stefan-webrtc, mflodman, åsapersson
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Remove static locals from histograms. Replaces RTC_HISTOGRAM_* usages with construction-time factory getter calls, which removes the need for compare-and-swap atomic usage whenever these are updated. BUG=chromium:681103 R=tommi@webrtc.org

Patch Set 1 #

Patch Set 2 : remove old array include #

Patch Set 3 : do check for Enabled() inside HistogramAdd #

Patch Set 4 : remove one sizeof array size #

Patch Set 5 : implement a convenience rtc::Histogram class with type checking and less arguments #

Patch Set 6 : add histogram.h,cc #

Patch Set 7 : use another HistogramBase constructor for enumerations #

Unified diffs Side-by-side diffs Delta from patch set Stats (+224 lines, -27 lines) Patch
M webrtc/base/BUILD.gn View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
A webrtc/base/histogram.h View 1 2 3 4 5 6 1 chunk +83 lines, -0 lines 0 comments Download
A webrtc/base/histogram.cc View 1 2 3 4 5 6 1 chunk +87 lines, -0 lines 0 comments Download
M webrtc/modules/bitrate_controller/send_side_bandwidth_estimation.h View 1 2 3 4 5 6 3 chunks +15 lines, -0 lines 0 comments Download
M webrtc/modules/bitrate_controller/send_side_bandwidth_estimation.cc View 1 2 3 4 4 chunks +23 lines, -27 lines 0 comments Download
M webrtc/system_wrappers/source/metrics_default.cc View 1 2 2 chunks +14 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (3 generated)
pbos-webrtc
remove old array include
3 years, 11 months ago (2017-01-23 13:52:12 UTC) #1
pbos-webrtc
do check for Enabled() inside HistogramAdd
3 years, 11 months ago (2017-01-23 14:16:01 UTC) #2
pbos-webrtc
remove one sizeof array size
3 years, 11 months ago (2017-01-23 14:39:36 UTC) #3
tommi
is the biggest win here the removal of atomic operations?
3 years, 11 months ago (2017-01-23 16:21:54 UTC) #4
pbos-webrtc
On 2017/01/23 16:21:54, tommi (webrtc) wrote: > is the biggest win here the removal of ...
3 years, 11 months ago (2017-01-23 16:37:25 UTC) #5
tommi
On 2017/01/23 16:37:25, pbos-webrtc wrote: > On 2017/01/23 16:21:54, tommi (webrtc) wrote: > > is ...
3 years, 11 months ago (2017-01-24 10:20:23 UTC) #6
pbos-webrtc
On 2017/01/24 10:20:23, tommi (webrtc) wrote: > On 2017/01/23 16:37:25, pbos-webrtc wrote: > > On ...
3 years, 11 months ago (2017-01-24 19:01:20 UTC) #7
pbos-webrtc
implement a convenience rtc::Histogram class with type checking and less arguments
3 years, 11 months ago (2017-01-26 22:22:41 UTC) #8
pbos-webrtc
add histogram.h,cc
3 years, 11 months ago (2017-01-26 22:23:00 UTC) #9
pbos-webrtc
Something like this tommi@? You'd instantiate and use rtc::Histogram{,Linear,Boolean,Percentage} with a lot more arguments optional ...
3 years, 11 months ago (2017-01-26 22:24:55 UTC) #10
pbos-webrtc
use another HistogramBase constructor for enumerations
3 years, 11 months ago (2017-01-26 22:35:56 UTC) #11
tommi
On 2017/01/26 22:24:55, pbos-webrtc wrote: > Something like this tommi@? > > You'd instantiate and ...
3 years, 11 months ago (2017-01-26 22:48:46 UTC) #12
mflodman
3 years, 11 months ago (2017-01-27 07:03:51 UTC) #15
+asapersson

Powered by Google App Engine
This is Rietveld 408576698