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

Issue 1868193003: Store alloc history data in memory leak report protobuf (Closed)

Created:
4 years, 8 months ago by Simon Que
Modified:
4 years, 8 months ago
CC:
chromium-reviews, asvitkine+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@leak-history
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Store alloc history data in memory leak report protobuf BUG=chromium:382705 TEST=unit tests pass Committed: https://crrev.com/26e212b95ec412ff489e0eb8679285cb5df20228 Cr-Commit-Position: refs/heads/master@{#387393}

Patch Set 1 #

Total comments: 12

Patch Set 2 : Remove unused include; do not call reserve(); LeakDetector stores reports as protobufs #

Patch Set 3 : Add back algorithm include; remove dependency on other patch set #

Total comments: 7

Patch Set 4 : Call MergeFrom(); Update comment about repeated fields; Use braces for single-line for loops #

Total comments: 2

Patch Set 5 : More curly braces #

Patch Set 6 : Update build deps #

Patch Set 7 : Add dependency on protobufs to leak detector tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+188 lines, -114 lines) Patch
M chrome/browser/metrics/leak_detector_controller.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/metrics/leak_detector_controller.cc View 1 2 3 1 chunk +10 lines, -11 lines 0 comments Download
M chrome/browser/metrics/leak_detector_controller_unittest.cc View 1 2 3 7 chunks +93 lines, -27 lines 0 comments Download
M components/metrics.gypi View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M components/metrics/BUILD.gn View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M components/metrics/leak_detector/leak_detector.h View 1 3 chunks +6 lines, -17 lines 0 comments Download
M components/metrics/leak_detector/leak_detector.cc View 1 2 3 4 7 chunks +28 lines, -30 lines 0 comments Download
M components/metrics/leak_detector/leak_detector_unittest.cc View 1 2 3 3 chunks +47 lines, -28 lines 0 comments Download

Messages

Total messages: 33 (15 generated)
Simon Que
4 years, 8 months ago (2016-04-11 20:29:16 UTC) #2
Simon Que
https://codereview.chromium.org/1868193003/diff/1/components/metrics/leak_detector/leak_detector.h File components/metrics/leak_detector/leak_detector.h (right): https://codereview.chromium.org/1868193003/diff/1/components/metrics/leak_detector/leak_detector.h#newcode53 components/metrics/leak_detector/leak_detector.h:53: // to merge the two. I wonder if LeakDetector ...
4 years, 8 months ago (2016-04-11 20:31:25 UTC) #3
Will Harris
not too familiar with the protobuf aspects of metrics, so I'm happy for asvitkine to ...
4 years, 8 months ago (2016-04-11 21:11:51 UTC) #4
Simon Que
Adding Ilya as reviewer since he reviewed my protobuf code.
4 years, 8 months ago (2016-04-11 21:13:15 UTC) #8
Ilya Sherman
LGTM % nits, thanks. https://codereview.chromium.org/1868193003/diff/1/components/metrics/leak_detector/leak_detector.cc File components/metrics/leak_detector/leak_detector.cc (right): https://codereview.chromium.org/1868193003/diff/1/components/metrics/leak_detector/leak_detector.cc#newcode9 components/metrics/leak_detector/leak_detector.cc:9: #include <algorithm> // For std::transform ...
4 years, 8 months ago (2016-04-13 00:07:12 UTC) #9
Simon Que
https://codereview.chromium.org/1868193003/diff/1/components/metrics/leak_detector/leak_detector.cc File components/metrics/leak_detector/leak_detector.cc (right): https://codereview.chromium.org/1868193003/diff/1/components/metrics/leak_detector/leak_detector.cc#newcode9 components/metrics/leak_detector/leak_detector.cc:9: #include <algorithm> // For std::transform On 2016/04/13 00:07:12, Ilya ...
4 years, 8 months ago (2016-04-13 22:41:31 UTC) #10
Ilya Sherman
Thanks. Still LGTM % nits: https://codereview.chromium.org/1868193003/diff/40001/chrome/browser/metrics/leak_detector_controller.cc File chrome/browser/metrics/leak_detector_controller.cc (right): https://codereview.chromium.org/1868193003/diff/40001/chrome/browser/metrics/leak_detector_controller.cc#newcode119 chrome/browser/metrics/leak_detector_controller.cc:119: proto->CheckTypeAndMergeFrom(report); Hmm, is the ...
4 years, 8 months ago (2016-04-14 01:08:46 UTC) #11
Simon Que
https://codereview.chromium.org/1868193003/diff/40001/chrome/browser/metrics/leak_detector_controller.cc File chrome/browser/metrics/leak_detector_controller.cc (right): https://codereview.chromium.org/1868193003/diff/40001/chrome/browser/metrics/leak_detector_controller.cc#newcode119 chrome/browser/metrics/leak_detector_controller.cc:119: proto->CheckTypeAndMergeFrom(report); On 2016/04/14 01:08:45, Ilya Sherman wrote: > Hmm, ...
4 years, 8 months ago (2016-04-14 01:24:31 UTC) #12
Ilya Sherman
(Still LGTM) https://codereview.chromium.org/1868193003/diff/40001/chrome/browser/metrics/leak_detector_controller.cc File chrome/browser/metrics/leak_detector_controller.cc (right): https://codereview.chromium.org/1868193003/diff/40001/chrome/browser/metrics/leak_detector_controller.cc#newcode119 chrome/browser/metrics/leak_detector_controller.cc:119: proto->CheckTypeAndMergeFrom(report); On 2016/04/14 01:24:30, Simon Que wrote: ...
4 years, 8 months ago (2016-04-14 02:30:05 UTC) #13
Simon Que
https://codereview.chromium.org/1868193003/diff/60001/components/metrics/leak_detector/leak_detector.cc File components/metrics/leak_detector/leak_detector.cc (right): https://codereview.chromium.org/1868193003/diff/60001/components/metrics/leak_detector/leak_detector.cc#newcode118 components/metrics/leak_detector/leak_detector.cc:118: proto_entry->add_counts_by_size(count); On 2016/04/14 02:30:04, Ilya Sherman wrote: > nit: ...
4 years, 8 months ago (2016-04-14 03:04:49 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1868193003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1868193003/80001
4 years, 8 months ago (2016-04-14 03:05:20 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_chromeos_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_chromeos_rel/builds/171933)
4 years, 8 months ago (2016-04-14 03:13:00 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1868193003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1868193003/100001
4 years, 8 months ago (2016-04-14 06:40:08 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_chromeos_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_chromeos_rel/builds/171988)
4 years, 8 months ago (2016-04-14 06:47:39 UTC) #24
Simon Que
On 2016/04/14 06:47:39, commit-bot: I haz the power wrote: > Try jobs failed on following ...
4 years, 8 months ago (2016-04-14 07:20:01 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1868193003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1868193003/140001
4 years, 8 months ago (2016-04-14 19:25:24 UTC) #29
commit-bot: I haz the power
Committed patchset #7 (id:140001)
4 years, 8 months ago (2016-04-14 19:32:34 UTC) #31
commit-bot: I haz the power
4 years, 8 months ago (2016-04-14 19:34:09 UTC) #33
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/26e212b95ec412ff489e0eb8679285cb5df20228
Cr-Commit-Position: refs/heads/master@{#387393}

Powered by Google App Engine
This is Rietveld 408576698