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

Issue 10823205: Report memory retained by memory allocator internals. (Closed)

Created:
8 years, 4 months ago by alexeif
Modified:
8 years ago
CC:
chromium-reviews, darin-cc_chromium.org, loislo
Visibility:
Public.

Description

Report memory usage retained by TCMalloc freelists. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=171767

Patch Set 1 #

Patch Set 2 : Fix a typo. #

Total comments: 6

Patch Set 3 : Addressing comments. #

Patch Set 4 : Do not count unmapped memory in the stats. #

Patch Set 5 : Update to commit message #

Patch Set 6 : Renamed the API function. #

Total comments: 2

Patch Set 7 : Rebaselining #

Patch Set 8 : Replace GetProperty with GetAllocatorWasteSize #

Total comments: 6

Patch Set 9 : Remove base::allocator where not needed. #

Patch Set 10 : Fix Windows build #

Patch Set 11 : More fixes to win_rel build. #

Patch Set 12 : Removing DCHECK. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -65 lines) Patch
M base/allocator/allocator_extension.h View 1 2 3 4 5 6 7 2 chunks +9 lines, -8 lines 0 comments Download
M base/allocator/allocator_extension.cc View 1 2 3 4 5 6 7 8 2 chunks +16 lines, -17 lines 0 comments Download
M base/allocator/allocator_extension_thunks.h View 1 2 3 4 5 6 7 1 chunk +4 lines, -3 lines 0 comments Download
M base/allocator/allocator_extension_thunks.cc View 1 2 3 4 5 6 7 1 chunk +6 lines, -5 lines 0 comments Download
M base/allocator/allocator_shim.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +15 lines, -29 lines 0 comments Download
M content/app/content_main_runner.cc View 1 2 3 4 5 6 7 8 9 2 chunks +15 lines, -3 lines 0 comments Download
M webkit/glue/webkitplatformsupport_impl.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M webkit/glue/webkitplatformsupport_impl.cc View 1 2 3 4 5 6 7 8 9 2 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 35 (0 generated)
alexeif
This function is needed for native memory instrumentation effort in Web Inspector.
8 years, 4 months ago (2012-08-07 17:46:46 UTC) #1
darin (slow to review)
https://chromiumcodereview.appspot.com/10823205/diff/3001/webkit/glue/webkitplatformsupport_impl.cc File webkit/glue/webkitplatformsupport_impl.cc (right): https://chromiumcodereview.appspot.com/10823205/diff/3001/webkit/glue/webkitplatformsupport_impl.cc#newcode765 webkit/glue/webkitplatformsupport_impl.cc:765: bool WebKitPlatformSupportImpl::memoryAllocatorWasteInBytes(size_t* psize) { nit: avoid Hungarian notation... psize ...
8 years, 4 months ago (2012-08-07 22:06:14 UTC) #2
darin (slow to review)
8 years, 4 months ago (2012-08-07 22:06:15 UTC) #3
jamesr
https://chromiumcodereview.appspot.com/10823205/diff/3001/webkit/glue/webkitplatformsupport_impl.cc File webkit/glue/webkitplatformsupport_impl.cc (right): https://chromiumcodereview.appspot.com/10823205/diff/3001/webkit/glue/webkitplatformsupport_impl.cc#newcode766 webkit/glue/webkitplatformsupport_impl.cc:766: #if defined(USE_TCMALLOC) having defined(USE_TCMALLOC) set does not mean that ...
8 years, 4 months ago (2012-08-07 22:15:59 UTC) #4
alexeif
Thanks for your comments folks! PTAL https://chromiumcodereview.appspot.com/10823205/diff/3001/webkit/glue/webkitplatformsupport_impl.cc File webkit/glue/webkitplatformsupport_impl.cc (right): https://chromiumcodereview.appspot.com/10823205/diff/3001/webkit/glue/webkitplatformsupport_impl.cc#newcode765 webkit/glue/webkitplatformsupport_impl.cc:765: bool WebKitPlatformSupportImpl::memoryAllocatorWasteInBytes(size_t* psize) ...
8 years, 4 months ago (2012-08-08 17:18:36 UTC) #5
jamesr
I don't think it makes sense to expose such a specific detail of a specific ...
8 years, 4 months ago (2012-08-10 18:59:37 UTC) #6
jamesr
One way to take care of the "black hole" problem would be to expose something ...
8 years, 4 months ago (2012-08-10 19:01:05 UTC) #7
alexeif
On 2012/08/10 18:59:37, jamesr wrote: > I don't think it makes sense to expose such ...
8 years, 4 months ago (2012-08-11 11:33:28 UTC) #8
alexeif
On 2012/08/10 18:59:37, jamesr wrote: > I don't think it makes sense to expose such ...
8 years, 4 months ago (2012-08-11 11:37:27 UTC) #9
yurys
On 2012/08/10 19:01:05, jamesr wrote: > One way to take care of the "black hole" ...
8 years, 4 months ago (2012-08-13 06:46:34 UTC) #10
jamesr
On 2012/08/13 06:46:34, Yury Semikhatsky wrote: > On 2012/08/10 19:01:05, jamesr wrote: > > One ...
8 years, 4 months ago (2012-08-14 22:30:47 UTC) #11
yurys
On 2012/08/14 22:30:47, jamesr wrote: > On 2012/08/13 06:46:34, Yury Semikhatsky wrote: > > On ...
8 years, 4 months ago (2012-08-15 06:37:10 UTC) #12
jamesr
On 2012/08/15 06:37:10, Yury Semikhatsky wrote: > We cannot say if it is bothering us ...
8 years, 4 months ago (2012-08-15 16:14:42 UTC) #13
yurys
message: On 2012/08/15 16:14:42, jamesr wrote: > On 2012/08/15 06:37:10, Yury Semikhatsky wrote: > > ...
8 years, 4 months ago (2012-08-16 10:22:13 UTC) #14
jamesr
On 2012/08/16 10:22:13, Yury Semikhatsky wrote: > message: On 2012/08/15 16:14:42, jamesr wrote: > > ...
8 years, 4 months ago (2012-08-16 17:19:41 UTC) #15
pfeldman
@jamesr: This thread got a bit big. So yes, we are fine with perceiving this ...
8 years, 4 months ago (2012-08-17 08:25:30 UTC) #16
alexeif
On 2012/08/14 22:30:47, jamesr wrote: > On 2012/08/13 06:46:34, Yury Semikhatsky wrote: > > On ...
8 years, 4 months ago (2012-08-17 21:42:24 UTC) #17
alexeif
Sorry for not replying earlier, I'm just back from vacation. On 2012/08/16 17:19:41, jamesr wrote: ...
8 years, 3 months ago (2012-09-11 13:29:06 UTC) #18
alexeif
James, I've renamed the function (Waste -> Internals) as we agreed in the WebKit part ...
8 years, 2 months ago (2012-09-24 12:14:31 UTC) #19
alexeif
Hi James, I've got an R+ for WebKit API https://bugs.webkit.org/show_bug.cgi?id=93372 So what about the implementation?
8 years, 2 months ago (2012-10-11 13:46:36 UTC) #20
darin (slow to review)
https://chromiumcodereview.appspot.com/10823205/diff/19001/webkit/glue/webkitplatformsupport_impl.cc File webkit/glue/webkitplatformsupport_impl.cc (right): https://chromiumcodereview.appspot.com/10823205/diff/19001/webkit/glue/webkitplatformsupport_impl.cc#newcode802 webkit/glue/webkitplatformsupport_impl.cc:802: if (base::allocator::GetProperty("generic.heap_size", &heap_size) && nit: Shouldn't there be some ...
8 years, 2 months ago (2012-10-18 18:02:54 UTC) #21
alph-g
https://chromiumcodereview.appspot.com/10823205/diff/19001/webkit/glue/webkitplatformsupport_impl.cc File webkit/glue/webkitplatformsupport_impl.cc (right): https://chromiumcodereview.appspot.com/10823205/diff/19001/webkit/glue/webkitplatformsupport_impl.cc#newcode802 webkit/glue/webkitplatformsupport_impl.cc:802: if (base::allocator::GetProperty("generic.heap_size", &heap_size) && On 2012/10/18 18:02:54, darin wrote: ...
8 years, 2 months ago (2012-10-22 12:19:41 UTC) #22
alexeif
Darin, I have replaced generic GetProperty with GetAllocatorWasteSize.
8 years, 1 month ago (2012-10-23 15:15:03 UTC) #23
darin (slow to review)
https://chromiumcodereview.appspot.com/10823205/diff/30002/base/allocator/allocator_extension.cc File base/allocator/allocator_extension.cc (right): https://chromiumcodereview.appspot.com/10823205/diff/30002/base/allocator/allocator_extension.cc#newcode14 base/allocator/allocator_extension.cc:14: base::allocator::thunks::GetGetAllocatorWasteSizeFunction(); nit: no need for base::allocator:: prefix when you ...
8 years, 1 month ago (2012-10-23 17:28:30 UTC) #24
alexeif
https://chromiumcodereview.appspot.com/10823205/diff/30002/base/allocator/allocator_extension.cc File base/allocator/allocator_extension.cc (right): https://chromiumcodereview.appspot.com/10823205/diff/30002/base/allocator/allocator_extension.cc#newcode14 base/allocator/allocator_extension.cc:14: base::allocator::thunks::GetGetAllocatorWasteSizeFunction(); On 2012/10/23 17:28:30, darin wrote: > nit: no ...
8 years, 1 month ago (2012-10-23 18:00:14 UTC) #25
alexeif
Darin, could you please take a look. I seem addressed your comments. Thank you!
8 years ago (2012-12-01 00:39:15 UTC) #26
darin (slow to review)
LGTM
8 years ago (2012-12-03 18:43:18 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alexeif@chromium.org/10823205/39001
8 years ago (2012-12-03 19:01:12 UTC) #28
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
8 years ago (2012-12-03 19:34:56 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alexeif@chromium.org/10823205/50005
8 years ago (2012-12-04 20:22:17 UTC) #30
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
8 years ago (2012-12-04 20:46:33 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alexeif@chromium.org/10823205/44016
8 years ago (2012-12-04 22:11:05 UTC) #32
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
8 years ago (2012-12-04 22:55:46 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alexeif@chromium.org/10823205/53005
8 years ago (2012-12-07 07:56:48 UTC) #34
commit-bot: I haz the power
8 years ago (2012-12-07 12:19:52 UTC) #35
Message was sent while issue was closed.
Change committed as 171767

Powered by Google App Engine
This is Rietveld 408576698