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

Issue 2965083002: Reduce Histogram object size. (Closed)

Created:
3 years, 5 months ago by bcwhite
Modified:
3 years, 5 months ago
CC:
chromium-reviews, danakj+watch_chromium.org, asvitkine+watch_chromium.org, vmpstr+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Reduce Histogram object size. 1) Remove |final_delta_created_| on non-DCHECK builds. Though this is only a "bool", it's effectively a native int due to object size rounding requirements. 2) Remove |declared_min_| and |declared_max_| fields which are used only for checks and serialization, the values of which can be determined from the range buckets. These remove 16 bytes from an 88-byte structure on 64-bit, or about 20%. BUG=733380 Review-Url: https://codereview.chromium.org/2965083002 Cr-Commit-Position: refs/heads/master@{#484585} Committed: https://chromium.googlesource.com/chromium/src/+/f1dec483900f65168b0603556c1cb77c2f634864

Patch Set 1 #

Patch Set 2 : put #if around DCHECKs of final_delta_created because macros still 'use' the vars #

Total comments: 3

Patch Set 3 : added TODO to remove unnecessary parameters #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -16 lines) Patch
M base/metrics/histogram.h View 1 2 chunks +4 lines, -5 lines 0 comments Download
M base/metrics/histogram.cc View 1 2 7 chunks +25 lines, -11 lines 0 comments Download

Messages

Total messages: 24 (17 generated)
bcwhite
3 years, 5 months ago (2017-07-05 20:06:44 UTC) #11
Alexei Svitkine (slow)
lgtm nice! https://codereview.chromium.org/2965083002/diff/20001/base/metrics/histogram.cc File base/metrics/histogram.cc (right): https://codereview.chromium.org/2965083002/diff/20001/base/metrics/histogram.cc#newcode543 base/metrics/histogram.cc:543: Sample maximum, Can we remove these params ...
3 years, 5 months ago (2017-07-05 20:15:45 UTC) #12
bcwhite
https://codereview.chromium.org/2965083002/diff/20001/base/metrics/histogram.cc File base/metrics/histogram.cc (right): https://codereview.chromium.org/2965083002/diff/20001/base/metrics/histogram.cc#newcode543 base/metrics/histogram.cc:543: Sample maximum, On 2017/07/05 20:15:45, Alexei Svitkine (slow) wrote: ...
3 years, 5 months ago (2017-07-05 21:12:21 UTC) #13
bcwhite
https://codereview.chromium.org/2965083002/diff/20001/base/metrics/histogram.cc File base/metrics/histogram.cc (right): https://codereview.chromium.org/2965083002/diff/20001/base/metrics/histogram.cc#newcode543 base/metrics/histogram.cc:543: Sample maximum, Going with the TODO for now.
3 years, 5 months ago (2017-07-06 13:08:32 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2965083002/40001
3 years, 5 months ago (2017-07-06 14:26:24 UTC) #20
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/chromium/src/+/f1dec483900f65168b0603556c1cb77c2f634864
3 years, 5 months ago (2017-07-06 14:39:26 UTC) #23
Alexei Svitkine (slow)
3 years, 5 months ago (2017-07-06 17:13:25 UTC) #24
Message was sent while issue was closed.
I think cleaning them up would be good - but TODO for this CL is definitely
fine.

On Thu, Jul 6, 2017 at 10:39 AM, commit-bot@chromium.org via
codereview.chromium.org <reply@chromiumcodereview-hr.appspotmail.com> wrote:

> Committed patchset #3 (id:40001) as
> https://chromium.googlesource.com/chromium/src/+/
> f1dec483900f65168b0603556c1cb77c2f634864
>
> https://codereview.chromium.org/2965083002/
>

-- 
You received this message because you are subscribed to the Google Groups
"Chromium-reviews" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698