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

Issue 10830113: Dump type statistics of malloc'ed objects. (Closed)

Created:
8 years, 4 months ago by Dai Mikurube (NOT FULLTIME)
Modified:
8 years, 2 months ago
CC:
chromium-reviews, pam+watch_chromium.org
Visibility:
Public.

Description

Dump type statistics of malloc'ed objects. This change adds type statistics in heap-profiler. It dumps "prefix.<pid>.<num>.type" along with heap-profiles (.heap), which contains type information. Type statistics is for example " 13: 520 @ N3WTF5MutexE", which means that 13 objects of WTF::Mutex occupy 520 bytes. It depends on a modified version of the LLVM/Clang compiler at deps/third_party/llvm-allocated-type. BUG=123758 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=159952

Patch Set 1 #

Patch Set 2 : refactored #

Total comments: 2

Patch Set 3 : fixed. #

Total comments: 16

Patch Set 4 : reflected the comments. #

Patch Set 5 : renamed some names and macros. #

Patch Set 6 : renamed PROFILING_TYPE to TYPE_PROFILING #

Patch Set 7 : rebased #

Patch Set 8 : style fix #

Patch Set 9 : rebased #

Total comments: 10

Patch Set 10 : fixed for the comments. #

Total comments: 4

Patch Set 11 : fixed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+105 lines, -0 lines) Patch
M third_party/tcmalloc/chromium/src/heap-profile-table.h View 1 2 3 4 5 6 7 8 9 10 4 chunks +30 lines, -0 lines 0 comments Download
M third_party/tcmalloc/chromium/src/heap-profile-table.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +61 lines, -0 lines 0 comments Download
M third_party/tcmalloc/chromium/src/heap-profiler.cc View 1 2 3 4 5 2 chunks +14 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
Dai Mikurube (NOT FULLTIME)
Hi Jim, Alexander, Could you please take a look at this change when you have ...
8 years, 4 months ago (2012-08-14 07:26:33 UTC) #1
Alexander Potapenko
LGTM in general. http://codereview.chromium.org/10830113/diff/1004/third_party/tcmalloc/chromium/src/heap-profile-table.cc File third_party/tcmalloc/chromium/src/heap-profile-table.cc (right): http://codereview.chromium.org/10830113/diff/1004/third_party/tcmalloc/chromium/src/heap-profile-table.cc#newcode536 third_party/tcmalloc/chromium/src/heap-profile-table.cc:536: len = snprintf(buf, 1023, "%6d: %8"PRId64" ...
8 years, 4 months ago (2012-08-17 11:44:51 UTC) #2
Dai Mikurube (NOT FULLTIME)
Thank you for reviewing. Fixed it. I'll commit it after http://codereview.chromium.org/10411047/ is landed. http://codereview.chromium.org/10830113/diff/1004/third_party/tcmalloc/chromium/src/heap-profile-table.cc File ...
8 years, 4 months ago (2012-08-20 10:23:43 UTC) #3
Alexander Potapenko
LGTM
8 years, 4 months ago (2012-08-20 11:23:37 UTC) #4
jar (doing other things)
http://codereview.chromium.org/10830113/diff/6001/third_party/tcmalloc/chromium/src/heap-profile-table.cc File third_party/tcmalloc/chromium/src/heap-profile-table.cc (right): http://codereview.chromium.org/10830113/diff/6001/third_party/tcmalloc/chromium/src/heap-profile-table.cc#newcode96 third_party/tcmalloc/chromium/src/heap-profile-table.cc:96: static const char kAllocatedTypeStatsHeader[] = "allocated type statistics:\n"; nit: ...
8 years, 4 months ago (2012-08-20 21:59:09 UTC) #5
Dai Mikurube (NOT FULLTIME)
Thanks for the comments, Jim. Updated the patch set. http://codereview.chromium.org/10830113/diff/6001/third_party/tcmalloc/chromium/src/heap-profile-table.cc File third_party/tcmalloc/chromium/src/heap-profile-table.cc (right): http://codereview.chromium.org/10830113/diff/6001/third_party/tcmalloc/chromium/src/heap-profile-table.cc#newcode96 third_party/tcmalloc/chromium/src/heap-profile-table.cc:96: ...
8 years, 4 months ago (2012-08-21 04:45:44 UTC) #6
Dai Mikurube (NOT FULLTIME)
Updated the change based on renaming in http://codereview.chromium.org/10411047/.
8 years, 3 months ago (2012-08-29 04:45:52 UTC) #7
Dai Mikurube (NOT FULLTIME)
Hi Jim, Could you take a look at this? (Not in a very hurry, but ...
8 years, 2 months ago (2012-09-26 06:49:52 UTC) #8
Dai Mikurube (NOT FULLTIME)
Hi, just a reminder ping.
8 years, 2 months ago (2012-10-01 09:06:37 UTC) #9
jar (doing other things)
http://codereview.chromium.org/10830113/diff/26001/third_party/tcmalloc/chromium/src/heap-profile-table.cc File third_party/tcmalloc/chromium/src/heap-profile-table.cc (right): http://codereview.chromium.org/10830113/diff/26001/third_party/tcmalloc/chromium/src/heap-profile-table.cc#newcode426 third_party/tcmalloc/chromium/src/heap-profile-table.cc:426: const char* file_name) const { nit: does this need ...
8 years, 2 months ago (2012-10-01 21:59:44 UTC) #10
Dai Mikurube (NOT FULLTIME)
Thanks, Jim. Updated the patch. http://codereview.chromium.org/10830113/diff/26001/third_party/tcmalloc/chromium/src/heap-profile-table.cc File third_party/tcmalloc/chromium/src/heap-profile-table.cc (right): http://codereview.chromium.org/10830113/diff/26001/third_party/tcmalloc/chromium/src/heap-profile-table.cc#newcode426 third_party/tcmalloc/chromium/src/heap-profile-table.cc:426: const char* file_name) const ...
8 years, 2 months ago (2012-10-02 06:35:12 UTC) #11
jar (doing other things)
Two last requests.... and if you're fine with them, then I'll L G T M. ...
8 years, 2 months ago (2012-10-02 16:43:10 UTC) #12
Dai Mikurube (NOT FULLTIME)
Thanks, Jim. Renamed these functions. http://codereview.chromium.org/10830113/diff/28003/third_party/tcmalloc/chromium/src/heap-profile-table.cc File third_party/tcmalloc/chromium/src/heap-profile-table.cc (right): http://codereview.chromium.org/10830113/diff/28003/third_party/tcmalloc/chromium/src/heap-profile-table.cc#newcode506 third_party/tcmalloc/chromium/src/heap-profile-table.cc:506: void HeapProfileTable::CountUpTypeIterator( On 2012/10/02 ...
8 years, 2 months ago (2012-10-03 03:41:28 UTC) #13
jar (doing other things)
lgtm
8 years, 2 months ago (2012-10-03 16:40:35 UTC) #14
Dai Mikurube (NOT FULLTIME)
On 2012/10/03 16:40:35, jar wrote: > lgtm Thanks! I'll be committing...
8 years, 2 months ago (2012-10-03 16:56:59 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dmikurube@chromium.org/10830113/35001
8 years, 2 months ago (2012-10-03 16:57:16 UTC) #16
commit-bot: I haz the power
8 years, 2 months ago (2012-10-03 19:45:05 UTC) #17
Change committed as 159952

Powered by Google App Engine
This is Rietveld 408576698