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

Issue 2973603002: Remove typically unused local_metadata_ field. (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

Remove typically unused local_metadata_ field. The vast majority of histograms and their samples are now "persistent" with the memory coming from a special memory segment. It's wasteful to have a "local metadata" structure in each sample object that is never used. Instead, allocate the structure from the heap for only those objects that need it and release it when those objects get destructed. BUG=733380 Review-Url: https://codereview.chromium.org/2973603002 Cr-Commit-Position: refs/heads/master@{#484282} Committed: https://chromium.googlesource.com/chromium/src/+/b4d87bb384bfc8b43cadc24160c0da01ab09f555

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -27 lines) Patch
M base/metrics/histogram_samples.h View 2 chunks +2 lines, -5 lines 0 comments Download
M base/metrics/histogram_samples.cc View 2 chunks +2 lines, -11 lines 0 comments Download
M base/metrics/sample_map.cc View 1 chunk +4 lines, -2 lines 0 comments Download
M base/metrics/sample_vector.h View 1 chunk +0 lines, -1 line 0 comments Download
M base/metrics/sample_vector.cc View 2 chunks +4 lines, -8 lines 0 comments Download

Messages

Total messages: 12 (8 generated)
bcwhite
3 years, 5 months ago (2017-07-05 15:01:31 UTC) #6
Alexei Svitkine (slow)
lgtm
3 years, 5 months ago (2017-07-05 15:18:26 UTC) #7
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/2973603002/1
3 years, 5 months ago (2017-07-05 15:23:39 UTC) #9
commit-bot: I haz the power
3 years, 5 months ago (2017-07-05 15:29:14 UTC) #12
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/b4d87bb384bfc8b43cadc24160c0...

Powered by Google App Engine
This is Rietveld 408576698