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

Issue 8632007: A deeper heap profile dumper in third_party/tcmalloc/chromium. (Closed)

Created:
9 years, 1 month ago by Dai Mikurube (NOT FULLTIME)
Modified:
8 years, 8 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

A deeper heap profile dumper in third_party/tcmalloc/chromium. BUG=114301 TEST=run all existing tests. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=130092

Patch Set 1 #

Patch Set 2 : Refactor deep-memory-profiler.* #1 #

Patch Set 3 : Refactor deep-memory-profiler.* #2-3 #

Patch Set 4 : Fixed the patch, for the HEAP_PROFILE_MMAP fix. #

Patch Set 5 : Fixed. #

Patch Set 6 : Revived removed code temporarily. #

Patch Set 7 : Removed revided code again. #

Patch Set 8 : Refactor deep-memory-profiler.* #4-5 #

Patch Set 9 : Reduced changes in heap-profiler and heap-profile-table, and removed #define DEEP_PROFILER_ON #

Patch Set 10 : fixed and refactored. #

Patch Set 11 : restricted only in Linux #

Patch Set 12 : fix the restriction to Linux. #

Patch Set 13 : Refactored. #

Total comments: 22

Patch Set 14 : reflected the comments. #

Total comments: 2

Patch Set 15 : rebased. #

Total comments: 8

Patch Set 16 : Reflected the comments. #

Total comments: 50

Patch Set 17 : Updated except for the case of overrun. #

Patch Set 18 : Fixed the snprintf issues. #

Total comments: 24

Patch Set 19 : Reflected the comment. #

Total comments: 36

Patch Set 20 : Reflected the comments. #

Patch Set 21 : Refactored. #

Total comments: 10

Patch Set 22 : separeted mmap part and malloc part. #

Patch Set 23 : added a version in deep profile dump. #

Patch Set 24 : changed the header again. #

Patch Set 25 : fixed header. #

Patch Set 26 : ready for review. #

Total comments: 58

Patch Set 27 : Reflected the comments. #

Total comments: 16

Patch Set 28 : rebased. #

Total comments: 22

Patch Set 29 : reflected the comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+899 lines, -1 line) Patch
M base/allocator/allocator.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 2 chunks +4 lines, -0 lines 0 comments Download
A third_party/tcmalloc/chromium/src/deep-heap-profile.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 1 chunk +258 lines, -0 lines 0 comments Download
A third_party/tcmalloc/chromium/src/deep-heap-profile.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 1 chunk +612 lines, -0 lines 0 comments Download
M third_party/tcmalloc/chromium/src/heap-profile-table.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 1 chunk +1 line, -0 lines 0 comments Download
M third_party/tcmalloc/chromium/src/heap-profiler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 6 chunks +24 lines, -1 line 0 comments Download

Messages

Total messages: 30 (0 generated)
Alexander Potapenko
I haven't looked at deep-heap-profile.cc closely yet. But my concern is that you should probably ...
9 years ago (2011-12-20 13:57:23 UTC) #1
Dai Mikurube (NOT FULLTIME)
Thank you for reviewing this patch. In regard to inheriting DeepHeapProfile from HeapProfileTable, I thought ...
9 years ago (2011-12-21 09:13:49 UTC) #2
jar (doing other things)
http://codereview.chromium.org/8632007/diff/44003/third_party/tcmalloc/chromium/src/deep-heap-profile.h File third_party/tcmalloc/chromium/src/deep-heap-profile.h (right): http://codereview.chromium.org/8632007/diff/44003/third_party/tcmalloc/chromium/src/deep-heap-profile.h#newcode9 third_party/tcmalloc/chromium/src/deep-heap-profile.h:9: I'm a big fan of overview comments in header ...
9 years ago (2011-12-22 19:21:11 UTC) #3
Alexander Potapenko
http://codereview.chromium.org/8632007/diff/44001/base/allocator/allocator.gyp File base/allocator/allocator.gyp (right): http://codereview.chromium.org/8632007/diff/44001/base/allocator/allocator.gyp#newcode304 base/allocator/allocator.gyp:304: # heap-profiler/checker/cpuprofiler E.g. I think you need to put ...
9 years ago (2011-12-23 09:58:05 UTC) #4
Dai Mikurube (NOT FULLTIME)
Thank you for the comments. http://codereview.chromium.org/8632007/diff/44003/third_party/tcmalloc/chromium/src/deep-heap-profile.h File third_party/tcmalloc/chromium/src/deep-heap-profile.h (right): http://codereview.chromium.org/8632007/diff/44003/third_party/tcmalloc/chromium/src/deep-heap-profile.h#newcode9 third_party/tcmalloc/chromium/src/deep-heap-profile.h:9: On 2011/12/22 19:21:12, jar ...
8 years, 12 months ago (2011-12-26 05:06:05 UTC) #5
jar (doing other things)
I think the use of snprintf() needs to be much more carefully handled. See comments ...
8 years, 12 months ago (2011-12-28 08:30:17 UTC) #6
Dai Mikurube (NOT FULLTIME)
Hi Jim, Thank you so much for the comments. Updated the patch except for the ...
8 years, 11 months ago (2012-01-06 01:25:23 UTC) #7
Dai Mikurube (NOT FULLTIME)
Fixed the snprintf issues. http://codereview.chromium.org/8632007/diff/54001/third_party/tcmalloc/chromium/src/deep-heap-profile.cc File third_party/tcmalloc/chromium/src/deep-heap-profile.cc (right): http://codereview.chromium.org/8632007/diff/54001/third_party/tcmalloc/chromium/src/deep-heap-profile.cc#newcode108 third_party/tcmalloc/chromium/src/deep-heap-profile.cc:108: snprintf(buf + bucket_length, size - ...
8 years, 11 months ago (2012-01-06 02:18:23 UTC) #8
jar (doing other things)
I think this is much safer/better. Thanks! Mostly just a bunch of nits. The if ...
8 years, 11 months ago (2012-01-06 03:05:09 UTC) #9
Dai Mikurube (NOT FULLTIME)
Thank you for the comments. Updated. http://codereview.chromium.org/8632007/diff/61002/third_party/tcmalloc/chromium/src/deep-heap-profile.cc File third_party/tcmalloc/chromium/src/deep-heap-profile.cc (right): http://codereview.chromium.org/8632007/diff/61002/third_party/tcmalloc/chromium/src/deep-heap-profile.cc#newcode108 third_party/tcmalloc/chromium/src/deep-heap-profile.cc:108: if (printed < ...
8 years, 11 months ago (2012-01-06 20:11:27 UTC) #10
Dai Mikurube (NOT FULLTIME)
Hi, Just pinging. I'd be happy if you look at it when you have time... ...
8 years, 11 months ago (2012-01-13 07:01:13 UTC) #11
jar (doing other things)
I only started to comment, but I'd rather you take a shot at improving comments ...
8 years, 11 months ago (2012-01-13 20:37:23 UTC) #12
Dai Mikurube (NOT FULLTIME)
Thank you for reviewing, Jim. Updating the patch might require some more time due to ...
8 years, 11 months ago (2012-01-17 01:20:31 UTC) #13
Dai Mikurube (NOT FULLTIME)
Thanks for the comments, Jim. Updated the patch. I wonder if you could take a ...
8 years, 11 months ago (2012-01-19 11:54:14 UTC) #14
Dai Mikurube (NOT FULLTIME)
Separated a mmap part and a malloc part in dumped result. Changes in malloc_hook.cc can ...
8 years, 11 months ago (2012-01-23 11:07:45 UTC) #15
Dai Mikurube (NOT FULLTIME)
Hi, Removed changes in malloc_hook.cc finally. It's ready for review. Could you PTAL at this?
8 years, 11 months ago (2012-01-26 12:36:17 UTC) #16
jar (doing other things)
Here are some comments that were sitting in my draft list... I'll look at the ...
8 years, 11 months ago (2012-01-26 20:19:01 UTC) #17
jar (doing other things)
Here are a large set of questions and nits. I haven't really done a full ...
8 years, 11 months ago (2012-01-27 00:46:58 UTC) #18
Dai Mikurube (NOT FULLTIME)
Thank you for the fine comments. Updated the patch and replied inline. http://codereview.chromium.org/8632007/diff/44001/base/allocator/allocator.gyp File base/allocator/allocator.gyp ...
8 years, 10 months ago (2012-01-30 12:54:53 UTC) #19
Dai Mikurube (NOT FULLTIME)
Hi Jim, btw, if it's better to split this change into multiple changes, I'll try ...
8 years, 10 months ago (2012-02-02 05:42:35 UTC) #20
Dai Mikurube (NOT FULLTIME)
Rebased it for the latest version. This patch applies on the latest tree directly.
8 years, 9 months ago (2012-03-16 00:15:36 UTC) #21
jar (doing other things)
Mostly nits now. Please try to do a test-landing to measure perf impact. Thanks, Jim ...
8 years, 9 months ago (2012-03-16 01:19:59 UTC) #22
Alexander Potapenko
A bit more comments. The CL looks mostly good, but let me take another look. ...
8 years, 9 months ago (2012-03-16 11:11:11 UTC) #23
Dai Mikurube (NOT FULLTIME)
Thank you, Jim, Alexander. I tried an experimental landing in r127171, and reverted in r127194. ...
8 years, 9 months ago (2012-03-16 17:48:11 UTC) #24
Dai Mikurube (NOT FULLTIME)
From my observation, I didn't find any abnormal values in cpu and vm on Win ...
8 years, 9 months ago (2012-03-16 18:44:03 UTC) #25
jar (doing other things)
lgtm
8 years, 9 months ago (2012-03-27 21:26:39 UTC) #26
Dai Mikurube (NOT FULLTIME)
On 2012/03/27 21:26:39, jar wrote: > lgtm Thanks, Jim! I'll commit it some days later... ...
8 years, 9 months ago (2012-03-27 21:30:25 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dmikurube@chromium.org/8632007/106008
8 years, 8 months ago (2012-04-02 02:12:30 UTC) #28
Dai Mikurube (NOT FULLTIME)
Checked the "Commit" box.
8 years, 8 months ago (2012-04-02 02:12:48 UTC) #29
commit-bot: I haz the power
8 years, 8 months ago (2012-04-02 03:55:17 UTC) #30
Change committed as 130092

Powered by Google App Engine
This is Rietveld 408576698