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

Issue 10541026: Add support for dump allocations created in a certain time window (Closed)

Created:
8 years, 6 months ago by jochen (gone - plz use gerrit)
Modified:
8 years, 6 months ago
CC:
chromium-reviews, pam+watch_chromium.org
Visibility:
Public.

Description

Add support for dump allocations created in a certain time window This allows for debugging e.g. objects that are not deleted during a page reload. I also added a tool for parsing and symbolizing the traces. BUG=none TEST=manual Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=141404

Patch Set 1 #

Total comments: 2

Patch Set 2 : updates #

Total comments: 1

Patch Set 3 : updates #

Total comments: 6

Patch Set 4 : patch for landing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+230 lines, -0 lines) Patch
M third_party/tcmalloc/chromium/src/heap-profile-table.h View 1 2 3 6 chunks +67 lines, -0 lines 0 comments Download
M third_party/tcmalloc/chromium/src/heap-profile-table.cc View 1 2 3 chunks +48 lines, -0 lines 0 comments Download
M third_party/tcmalloc/chromium/src/heap-profiler.cc View 1 2 1 chunk +24 lines, -0 lines 0 comments Download
A tools/tcmalloc/print-live-objects.py View 1 1 chunk +91 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
jochen (gone - plz use gerrit)
Jim, can you review the tcmalloc bits Marja, can you have a look at the ...
8 years, 6 months ago (2012-06-06 12:55:17 UTC) #1
marja
python part lgtm https://chromiumcodereview.appspot.com/10541026/diff/1/tools/tcmalloc/print-live-objects.py File tools/tcmalloc/print-live-objects.py (right): https://chromiumcodereview.appspot.com/10541026/diff/1/tools/tcmalloc/print-live-objects.py#newcode26 tools/tcmalloc/print-live-objects.py:26: line_no = 0; nit: no ; ...
8 years, 6 months ago (2012-06-06 13:11:06 UTC) #2
jochen (gone - plz use gerrit)
comments addresses (also fixed the compile error)
8 years, 6 months ago (2012-06-06 13:12:06 UTC) #3
jar (doing other things)
I'd like to add dmikurube to the reviewer list, to be sure these patches are ...
8 years, 6 months ago (2012-06-06 22:13:46 UTC) #4
Dai Mikurube (NOT FULLTIME)
It looks no conflicts with my work, and it basically looks good to me. But ...
8 years, 6 months ago (2012-06-07 05:48:16 UTC) #5
jochen (gone - plz use gerrit)
The idea is to call those methods from a debugger. Calling them doesn't interfere with ...
8 years, 6 months ago (2012-06-07 06:00:43 UTC) #6
Dai Mikurube (NOT FULLTIME)
I see. 'live' and 'ignored' are used in heap-checker*, but not used in heap-profile*. I ...
8 years, 6 months ago (2012-06-07 06:12:28 UTC) #7
jochen (gone - plz use gerrit)
I renamed the methods as suggested by Jim (although I picked different names than he ...
8 years, 6 months ago (2012-06-08 11:16:14 UTC) #8
jochen (gone - plz use gerrit)
friendly ping
8 years, 6 months ago (2012-06-09 18:45:15 UTC) #9
Dai Mikurube (NOT FULLTIME)
On 2012/06/09 18:45:15, jochen wrote: > friendly ping almost looks good. I'll look at it ...
8 years, 6 months ago (2012-06-10 03:07:50 UTC) #10
Dai Mikurube (NOT FULLTIME)
On 2012/06/08 11:16:14, jochen wrote: > I renamed the methods as suggested by Jim (although ...
8 years, 6 months ago (2012-06-10 11:52:19 UTC) #11
jochen (gone - plz use gerrit)
Right, those bits are only used by the leak checker On Jun 10, 2012 1:52 ...
8 years, 6 months ago (2012-06-10 11:57:13 UTC) #12
jar (doing other things)
See nits below (and apply if we can use our style). then LGTM https://chromiumcodereview.appspot.com/10541026/diff/9003/third_party/tcmalloc/chromium/src/heap-profile-table.h File ...
8 years, 6 months ago (2012-06-11 08:53:14 UTC) #13
jochen (gone - plz use gerrit)
8 years, 6 months ago (2012-06-11 13:13:47 UTC) #14
https://chromiumcodereview.appspot.com/10541026/diff/9003/third_party/tcmallo...
File third_party/tcmalloc/chromium/src/heap-profile-table.h (right):

https://chromiumcodereview.appspot.com/10541026/diff/9003/third_party/tcmallo...
third_party/tcmalloc/chromium/src/heap-profile-table.h:313: : fd(a), mark(m) { }
On 2012/06/11 08:53:14, jar wrote:
> nit: one initializer per line if you wrap... with the colon indented 4 spaces.
> 
> In this case, you don't need to wrap... and could put it all on the previous
> line.

Done.

https://chromiumcodereview.appspot.com/10541026/diff/9003/third_party/tcmallo...
third_party/tcmalloc/chromium/src/heap-profile-table.h:323: : mark(m),
mark_all(a) { }
On 2012/06/11 08:53:14, jar wrote:
> nit: again... one init per line ... with ":" indented 4 spaces...
> 
> ...but again... you didn't need to wrap at all.

Done.

https://chromiumcodereview.appspot.com/10541026/diff/9003/third_party/tcmallo...
File third_party/tcmalloc/chromium/src/heap-profiler.cc (right):

https://chromiumcodereview.appspot.com/10541026/diff/9003/third_party/tcmallo...
third_party/tcmalloc/chromium/src/heap-profiler.cc:205: static bool  is_on =
false;           // If are on as a subsytem.
I agree that the variable naming is not optimal, but to keep the diff to
upstream as small as possible, I think it's better not to change it

Powered by Google App Engine
This is Rietveld 408576698