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

Issue 10820063: Enable memory profiler when TC_MALLOC is enabled for (Closed)

Created:
8 years, 4 months ago by ramant (doing other things)
Modified:
8 years, 4 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, erikwright (departed), brettw-cc_chromium.org
Visibility:
Public.

Description

Enable memory profiler on Linux when TC_MALLOC is enabled. Added a tc_malloc memory extension to get bytes allocated on current thread (GetBytesAllocatedOnCurrentThread API call). R=jam@chromium.org,jar@chromium.org BUG=139667 TEST=test about:profiler after setting the env variable CHROME_PROFILER_TIME=1. In about:profiler, it will show the memory allocated per thread. This change impacts linux only. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=150135

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : #

Patch Set 11 : #

Patch Set 12 : #

Total comments: 2

Patch Set 13 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -2 lines) Patch
M content/app/content_main_runner.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +14 lines, -0 lines 0 comments Download
M third_party/tcmalloc/chromium/src/gperftools/malloc_extension.h View 1 2 3 4 5 6 2 chunks +5 lines, -1 line 0 comments Download
M third_party/tcmalloc/chromium/src/malloc_extension.cc View 1 2 3 4 5 6 3 chunks +6 lines, -1 line 0 comments Download

Messages

Total messages: 15 (0 generated)
ramant (doing other things)
Hi jar and jam, Code to enable to memory profiler for linux (moved the code ...
8 years, 4 months ago (2012-07-31 00:15:52 UTC) #1
jam
can you explain why this needs to move? i.e. was the code in base not ...
8 years, 4 months ago (2012-07-31 15:38:43 UTC) #2
ramant (doing other things)
On 2012/07/31 15:38:43, John Abd-El-Malek wrote: > can you explain why this needs to move? ...
8 years, 4 months ago (2012-07-31 16:44:09 UTC) #3
jam
On Tue, Jul 31, 2012 at 9:44 AM, <rtenneti@chromium.org> wrote: > On 2012/07/31 15:38:43, John ...
8 years, 4 months ago (2012-07-31 16:46:24 UTC) #4
ramant (doing other things)
On 2012/07/31 16:46:24, John Abd-El-Malek wrote: > On Tue, Jul 31, 2012 at 9:44 AM, ...
8 years, 4 months ago (2012-07-31 17:02:23 UTC) #5
ramant (doing other things)
On windows TC_MALLOC can be enabled dynamically, thus moved this change to posix & !mac ...
8 years, 4 months ago (2012-07-31 17:32:58 UTC) #6
jar (doing other things)
Yes... my mistake... I agreed that we could probably coalesce the code... but forgot about ...
8 years, 4 months ago (2012-07-31 17:41:48 UTC) #7
jar (doing other things)
LGTM with the exclusion of the file listed below. http://codereview.chromium.org/10820063/diff/11013/third_party/tcmalloc/vendor/src/malloc_extension.cc File third_party/tcmalloc/vendor/src/malloc_extension.cc (right): http://codereview.chromium.org/10820063/diff/11013/third_party/tcmalloc/vendor/src/malloc_extension.cc#newcode1 third_party/tcmalloc/vendor/src/malloc_extension.cc:1: ...
8 years, 4 months ago (2012-08-01 16:38:19 UTC) #8
ramant (doing other things)
Made all the changes you had suggested. Thanks much Jim. -raman http://codereview.chromium.org/10820063/diff/11013/third_party/tcmalloc/vendor/src/malloc_extension.cc File third_party/tcmalloc/vendor/src/malloc_extension.cc (right): ...
8 years, 4 months ago (2012-08-01 17:04:25 UTC) #9
jar (doing other things)
lgtm
8 years, 4 months ago (2012-08-01 18:12:28 UTC) #10
ramant (doing other things)
Hi John Abd-El-Malek, Would appreciate if you could take a look at this CL. thanks ...
8 years, 4 months ago (2012-08-06 17:49:11 UTC) #11
jam
lgtm
8 years, 4 months ago (2012-08-06 18:23:25 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rtenneti@chromium.org/10820063/10017
8 years, 4 months ago (2012-08-06 18:23:47 UTC) #13
ramant (doing other things)
On 2012/08/06 18:23:25, John Abd-El-Malek wrote: > lgtm thanks very much John Abd-El-Malek and Jar.
8 years, 4 months ago (2012-08-06 18:24:09 UTC) #14
commit-bot: I haz the power
8 years, 4 months ago (2012-08-06 20:00:58 UTC) #15
Change committed as 150135

Powered by Google App Engine
This is Rietveld 408576698