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

Issue 1870233003: Record call site history in LeakDetectorImpl (Closed)

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

Description

Record call site history in LeakDetectorImpl Recording a history of the call sites with the most allocations gives us a better picture of the allocation patterns leading up to a suspected leak being found. This is useful data that is relatively easy to obtain -- it is already being processed by the Leak Detector, just have to record it. BUG=chromium:382705 TEST=unit tests pass Committed: https://crrev.com/c9487e8d00805addbbb847f662a39d3258063ac6 Cr-Commit-Position: refs/heads/master@{#386500}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add unit test coverage #

Total comments: 7

Patch Set 3 : Clarify comments in RankedSet #

Unified diffs Side-by-side diffs Delta from patch set Stats (+263 lines, -57 lines) Patch
M components/metrics/leak_detector/leak_detector_impl.h View 5 chunks +47 lines, -6 lines 0 comments Download
M components/metrics/leak_detector/leak_detector_impl.cc View 6 chunks +87 lines, -18 lines 0 comments Download
M components/metrics/leak_detector/leak_detector_impl_unittest.cc View 1 4 chunks +64 lines, -33 lines 0 comments Download
M components/metrics/leak_detector/ranked_set.h View 1 2 1 chunk +13 lines, -0 lines 0 comments Download
M components/metrics/leak_detector/ranked_set.cc View 1 2 1 chunk +15 lines, -0 lines 0 comments Download
M components/metrics/leak_detector/ranked_set_unittest.cc View 1 chunk +37 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (7 generated)
Simon Que
4 years, 8 months ago (2016-04-08 22:07:47 UTC) #3
Simon Que
https://codereview.chromium.org/1870233003/diff/1/components/metrics/leak_detector/leak_detector_impl_unittest.cc File components/metrics/leak_detector/leak_detector_impl_unittest.cc (right): https://codereview.chromium.org/1870233003/diff/1/components/metrics/leak_detector/leak_detector_impl_unittest.cc#newcode552 components/metrics/leak_detector/leak_detector_impl_unittest.cc:552: } Still need to check the call stack breakdown.
4 years, 8 months ago (2016-04-09 00:15:58 UTC) #4
Simon Que
https://codereview.chromium.org/1870233003/diff/1/components/metrics/leak_detector/leak_detector_impl_unittest.cc File components/metrics/leak_detector/leak_detector_impl_unittest.cc (right): https://codereview.chromium.org/1870233003/diff/1/components/metrics/leak_detector/leak_detector_impl_unittest.cc#newcode552 components/metrics/leak_detector/leak_detector_impl_unittest.cc:552: } On 2016/04/09 00:15:58, Simon Que wrote: > Still ...
4 years, 8 months ago (2016-04-09 01:04:32 UTC) #5
Will Harris
can you give a little more background on why this is needed and how it ...
4 years, 8 months ago (2016-04-09 19:39:02 UTC) #6
Simon Que
On 2016/04/09 19:39:02, Will Harris wrote: > can you give a little more background on ...
4 years, 8 months ago (2016-04-09 19:54:53 UTC) #8
Will Harris
https://codereview.chromium.org/1870233003/diff/20001/components/metrics/leak_detector/leak_detector_impl.cc File components/metrics/leak_detector/leak_detector_impl.cc (right): https://codereview.chromium.org/1870233003/diff/20001/components/metrics/leak_detector/leak_detector_impl.cc#newcode272 components/metrics/leak_detector/leak_detector_impl.cc:272: InternalVector<AllocationBreakdown>* dest = &report->alloc_breakdown_history_; why take this into a ...
4 years, 8 months ago (2016-04-09 20:10:23 UTC) #9
Simon Que
https://codereview.chromium.org/1870233003/diff/20001/components/metrics/leak_detector/leak_detector_impl.cc File components/metrics/leak_detector/leak_detector_impl.cc (right): https://codereview.chromium.org/1870233003/diff/20001/components/metrics/leak_detector/leak_detector_impl.cc#newcode272 components/metrics/leak_detector/leak_detector_impl.cc:272: InternalVector<AllocationBreakdown>* dest = &report->alloc_breakdown_history_; On 2016/04/09 20:10:23, Will Harris ...
4 years, 8 months ago (2016-04-09 21:04:11 UTC) #10
Will Harris
lgtm https://codereview.chromium.org/1870233003/diff/20001/components/metrics/leak_detector/leak_detector_impl.cc File components/metrics/leak_detector/leak_detector_impl.cc (right): https://codereview.chromium.org/1870233003/diff/20001/components/metrics/leak_detector/leak_detector_impl.cc#newcode272 components/metrics/leak_detector/leak_detector_impl.cc:272: InternalVector<AllocationBreakdown>* dest = &report->alloc_breakdown_history_; On 2016/04/09 21:04:11, Simon ...
4 years, 8 months ago (2016-04-11 17:26:37 UTC) #11
Simon Que
https://codereview.chromium.org/1870233003/diff/20001/components/metrics/leak_detector/ranked_set.cc File components/metrics/leak_detector/ranked_set.cc (right): https://codereview.chromium.org/1870233003/diff/20001/components/metrics/leak_detector/ranked_set.cc#newcode55 components/metrics/leak_detector/ranked_set.cc:55: // whole Entry struct. On 2016/04/11 17:26:37, Will Harris ...
4 years, 8 months ago (2016-04-11 18:41:08 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1870233003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1870233003/40001
4 years, 8 months ago (2016-04-11 21:15:21 UTC) #15
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 8 months ago (2016-04-11 22:35:35 UTC) #17
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/c9487e8d00805addbbb847f662a39d3258063ac6 Cr-Commit-Position: refs/heads/master@{#386500}
4 years, 8 months ago (2016-04-11 22:37:00 UTC) #19
Lei Zhang
We have red bots: https://build.chromium.org/p/chromium.memory/builders/Linux%20Chromium%20OS%20ASan%20LSan%20Tests%20%281%29/builds/11574 https://build.chromium.org/p/chromium.memory.fyi/builders/Linux%20ChromeOS%20MSan%20Tests/builds/8773 Revert?
4 years, 8 months ago (2016-04-12 00:41:10 UTC) #20
Lei Zhang
4 years, 8 months ago (2016-04-12 01:09:08 UTC) #21
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:40001) has been created in
https://codereview.chromium.org/1878863004/ by thestig@chromium.org.

The reason for reverting is: Broke ChromeOS ASAN and MSAN bots.

Links to failures are on the original code review..

Powered by Google App Engine
This is Rietveld 408576698