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

Issue 2403223002: Leak reports collect information about the last uptrend (Closed)

Created:
4 years, 2 months ago by mwlodar
Modified:
4 years, 2 months ago
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, asvitkine+watch_chromium.org, darin (slow to review), chongjiang
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Leak reports collect information about the last uptrend Leak reports collect information about the last uptrend in the number of allocations for a given call stack. Changes include new public methods in CallStackTable, new fields in LeakDetectorImpl::LeakReport and the mojo structs, minor changes in LeakDetector and LeakDetectorImpl, and updates in unit tests for CallStackTable and protobuf_to_mojo_converter. BUG=650352 Committed: https://crrev.com/11aa96ed7e3423bd90af355e8a8e55db1c55fdae Cr-Commit-Position: refs/heads/master@{#425464}

Patch Set 1 #

Total comments: 33

Patch Set 2 : Style changes #

Patch Set 3 : Style changes 2 #

Total comments: 2

Patch Set 4 : Added a test case #

Total comments: 2

Messages

Total messages: 42 (24 generated)
mwlodar
4 years, 2 months ago (2016-10-10 21:37:35 UTC) #5
mwlodar
4 years, 2 months ago (2016-10-10 22:24:55 UTC) #8
Simon Que
https://codereview.chromium.org/2403223002/diff/1/components/metrics/leak_detector/call_stack_table.cc File components/metrics/leak_detector/call_stack_table.cc (right): https://codereview.chromium.org/2403223002/diff/1/components/metrics/leak_detector/call_stack_table.cc#newcode45 components/metrics/leak_detector/call_stack_table.cc:45: ++(entry_map_[call_stack].count); The parentheses are not necessary. [] and . ...
4 years, 2 months ago (2016-10-11 01:11:06 UTC) #10
Simon Que
https://codereview.chromium.org/2403223002/diff/1/components/metrics/leak_detector/leak_detector_impl.cc File components/metrics/leak_detector/leak_detector_impl.cc (right): https://codereview.chromium.org/2403223002/diff/1/components/metrics/leak_detector/leak_detector_impl.cc#newcode325 components/metrics/leak_detector/leak_detector_impl.cc:325: call_site, timestamp, &(report->num_rising_intervals_), On 2016/10/11 01:11:06, Simon Que wrote: ...
4 years, 2 months ago (2016-10-11 01:11:42 UTC) #11
mwlodar
https://codereview.chromium.org/2403223002/diff/1/components/metrics/leak_detector/call_stack_table.cc File components/metrics/leak_detector/call_stack_table.cc (right): https://codereview.chromium.org/2403223002/diff/1/components/metrics/leak_detector/call_stack_table.cc#newcode45 components/metrics/leak_detector/call_stack_table.cc:45: ++(entry_map_[call_stack].count); On 2016/10/11 01:11:05, Simon Que wrote: > The ...
4 years, 2 months ago (2016-10-11 07:13:24 UTC) #16
Simon Que
https://codereview.chromium.org/2403223002/diff/1/components/metrics/leak_detector/call_stack_table_unittest.cc File components/metrics/leak_detector/call_stack_table_unittest.cc (right): https://codereview.chromium.org/2403223002/diff/1/components/metrics/leak_detector/call_stack_table_unittest.cc#newcode410 components/metrics/leak_detector/call_stack_table_unittest.cc:410: // All the history for stack2_ should be forgotten. ...
4 years, 2 months ago (2016-10-11 08:14:04 UTC) #17
mwlodar
https://codereview.chromium.org/2403223002/diff/1/components/metrics/leak_detector/call_stack_table_unittest.cc File components/metrics/leak_detector/call_stack_table_unittest.cc (right): https://codereview.chromium.org/2403223002/diff/1/components/metrics/leak_detector/call_stack_table_unittest.cc#newcode410 components/metrics/leak_detector/call_stack_table_unittest.cc:410: // All the history for stack2_ should be forgotten. ...
4 years, 2 months ago (2016-10-11 20:24:03 UTC) #20
Simon Que
lgtm +wfh to review changes to leak_detector.mojom
4 years, 2 months ago (2016-10-11 20:33:07 UTC) #22
Will Harris
lgtm for leak_detector.mojom
4 years, 2 months ago (2016-10-11 21:05:25 UTC) #25
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/2403223002/60001
4 years, 2 months ago (2016-10-13 23:05:26 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/280856)
4 years, 2 months ago (2016-10-13 23:16:32 UTC) #30
Simon Que
+asvitkine to review memory_leak_report.proto.
4 years, 2 months ago (2016-10-13 23:25:32 UTC) #32
Alexei Svitkine (slow)
lgtm https://codereview.chromium.org/2403223002/diff/60001/components/metrics/proto/memory_leak_report.proto File components/metrics/proto/memory_leak_report.proto (right): https://codereview.chromium.org/2403223002/diff/60001/components/metrics/proto/memory_leak_report.proto#newcode114 components/metrics/proto/memory_leak_report.proto:114: // allocations hits 0). Please make this change ...
4 years, 2 months ago (2016-10-14 20:04:45 UTC) #34
Simon Que
https://codereview.chromium.org/2403223002/diff/60001/components/metrics/proto/memory_leak_report.proto File components/metrics/proto/memory_leak_report.proto (right): https://codereview.chromium.org/2403223002/diff/60001/components/metrics/proto/memory_leak_report.proto#newcode114 components/metrics/proto/memory_leak_report.proto:114: // allocations hits 0). On 2016/10/14 20:04:45, Alexei Svitkine ...
4 years, 2 months ago (2016-10-14 21:06:28 UTC) #35
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/2403223002/60001
4 years, 2 months ago (2016-10-14 21:10:14 UTC) #37
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 2 months ago (2016-10-14 21:18:11 UTC) #39
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/11aa96ed7e3423bd90af355e8a8e55db1c55fdae Cr-Commit-Position: refs/heads/master@{#425464}
4 years, 2 months ago (2016-10-14 21:21:40 UTC) #41
Jeffrey Yasskin
4 years, 2 months ago (2016-10-14 23:54:41 UTC) #42
Message was sent while issue was closed.
A revert of this CL (patchset #4 id:60001) has been created in
https://codereview.chromium.org/2417403002/ by jyasskin@chromium.org.

The reason for reverting is: Broke the MSan build:

https://build.chromium.org/p/chromium.memory.full/builders/Chromium%20Linux%2...
In file included from ../../base/containers/hash_tables.h:9:
../../buildtools/third_party/libc++/trunk/include/unordered_map:785:5: error:
static_assert failed "Invalid allocator::value_type"
    static_assert((is_same<value_type, typename
allocator_type::value_type>::value),
    ^            
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../components/metrics/leak_detector/call_stack_table.h:98:39: note: in
instantiation of template class 'std::__1::unordered_map<const
metrics::leak_detector::CallStack *,
metrics::leak_detector::CallStackTable::CallStackCountInfo,
metrics::leak_detector::CallStackTable::StoredHash, std::__1::equal_to<const
metrics::leak_detector::CallStack *>, STLAllocator<std::__1::pair<const
metrics::leak_detector::CallStack *const, unsigned int>,
metrics::leak_detector::CustomAllocator> >' requested here
                 TableEntryAllocator> entry_map_;
                                      ^
../../components/metrics/leak_detector/call_stack_table.h:98:39: error: private
field 'entry_map_' is not used [-Werror,-Wunused-private-field]
                 TableEntryAllocator> entry_map_;
                                      ^
2 errors generated.
.

Powered by Google App Engine
This is Rietveld 408576698