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

Issue 12211008: Add a benchmarking_extension API to call TCMalloc's HeapProfilerDump(). (Closed)

Created:
7 years, 10 months ago by Dai Mikurube (NOT FULLTIME)
Modified:
7 years, 10 months ago
CC:
chromium-reviews, Aaron Boodman, darin-cc_chromium.org, chromium-apps-reviews_chromium.org
Visibility:
Public.

Description

Add a benchmarking_extension API to call TCMalloc's HeapProfilerDump(). BUG=chromium-os:38652 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=181185

Patch Set 1 #

Total comments: 2

Patch Set 2 : addressed the comments #

Total comments: 19

Patch Set 3 : #

Patch Set 4 : updated #

Patch Set 5 : addressed the comments. #

Total comments: 2

Patch Set 6 : addressed the comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+110 lines, -0 lines) Patch
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M content/content_renderer.gypi View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M content/public/common/content_switches.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/content_switches.cc View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
A content/renderer/memory_benchmarking_extension.h View 1 2 1 chunk +19 lines, -0 lines 0 comments Download
A content/renderer/memory_benchmarking_extension.cc View 1 2 3 4 5 1 chunk +80 lines, -0 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 2 chunks +4 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
Dai Mikurube (NOT FULLTIME)
Hi Nat and Dennis, This adds a benchmarking_extension API to support HeapProfilerDump() from Telemetry tests. ...
7 years, 10 months ago (2013-02-05 07:42:08 UTC) #1
dennis_jeffrey
This looks good to me at a high level, but I'll defer to the other ...
7 years, 10 months ago (2013-02-06 01:19:43 UTC) #2
Dai Mikurube (NOT FULLTIME)
On 2013/02/06 01:19:43, dennis_jeffrey wrote: > This looks good to me at a high level, ...
7 years, 10 months ago (2013-02-06 01:23:35 UTC) #3
nduca
https://codereview.chromium.org/12211008/diff/1/chrome/renderer/benchmarking_extension.cc File chrome/renderer/benchmarking_extension.cc (right): https://codereview.chromium.org/12211008/diff/1/chrome/renderer/benchmarking_extension.cc#newcode176 chrome/renderer/benchmarking_extension.cc:176: #if !defined(NO_TCMALLOC) && (defined(OS_LINUX) || defined(OS_CHROMEOS)) Awesome. Now, we've ...
7 years, 10 months ago (2013-02-06 07:26:42 UTC) #4
Dai Mikurube (NOT FULLTIME)
Thanks, Nat. https://codereview.chromium.org/12211008/diff/1/chrome/renderer/benchmarking_extension.cc File chrome/renderer/benchmarking_extension.cc (right): https://codereview.chromium.org/12211008/diff/1/chrome/renderer/benchmarking_extension.cc#newcode176 chrome/renderer/benchmarking_extension.cc:176: #if !defined(NO_TCMALLOC) && (defined(OS_LINUX) || defined(OS_CHROMEOS)) On ...
7 years, 10 months ago (2013-02-06 10:51:15 UTC) #5
nduca
That sounds about right!
7 years, 10 months ago (2013-02-06 10:54:37 UTC) #6
Dai Mikurube (NOT FULLTIME)
Updated the patch. Checked it's working with --enable-benchmarking. :)
7 years, 10 months ago (2013-02-06 11:18:15 UTC) #7
Dai Mikurube (NOT FULLTIME)
Added jochen for OWNER review. Jochen, could you take a look when Nat says ok?
7 years, 10 months ago (2013-02-06 11:25:43 UTC) #8
nduca
Use your own flag.... --enable-memory-benchmarking
7 years, 10 months ago (2013-02-06 11:32:15 UTC) #9
nduca
Oh, sorry, also, this is not really chrome specific, right? Seems more like a content/renderer ...
7 years, 10 months ago (2013-02-06 11:32:39 UTC) #10
Dai Mikurube (NOT FULLTIME)
On 2013/02/06 11:32:39, nduca wrote: > Oh, sorry, also, this is not really chrome specific, ...
7 years, 10 months ago (2013-02-06 11:36:45 UTC) #11
anagy4698
Enable-memória-benchmarking 2013/2/6 <dmikurube@chromium.org> > On 2013/02/06 11:32:39, nduca wrote: > >> Oh, sorry, also, this ...
7 years, 10 months ago (2013-02-06 11:37:41 UTC) #12
jochen (gone - plz use gerrit)
On 2013/02/06 11:36:45, Dai Mikurube wrote: > On 2013/02/06 11:32:39, nduca wrote: > > Oh, ...
7 years, 10 months ago (2013-02-06 11:47:56 UTC) #13
jochen (gone - plz use gerrit)
https://codereview.chromium.org/12211008/diff/6001/chrome/renderer/memory_benchmarking_extension.cc File chrome/renderer/memory_benchmarking_extension.cc (right): https://codereview.chromium.org/12211008/diff/6001/chrome/renderer/memory_benchmarking_extension.cc#newcode10 chrome/renderer/memory_benchmarking_extension.cc:10: #if !defined(NO_TCMALLOC) && (defined(OS_LINUX) || defined(OS_CHROMEOS)) #if clauses should ...
7 years, 10 months ago (2013-02-06 11:57:57 UTC) #14
Dai Mikurube (NOT FULLTIME)
Moved to content/. We may want another OWNER. ;) https://codereview.chromium.org/12211008/diff/6001/chrome/renderer/memory_benchmarking_extension.cc File chrome/renderer/memory_benchmarking_extension.cc (right): https://codereview.chromium.org/12211008/diff/6001/chrome/renderer/memory_benchmarking_extension.cc#newcode10 chrome/renderer/memory_benchmarking_extension.cc:10: ...
7 years, 10 months ago (2013-02-06 12:24:45 UTC) #15
nduca
I think its okay to leave the js in the cpp since its not large, ...
7 years, 10 months ago (2013-02-06 12:31:12 UTC) #16
jochen (gone - plz use gerrit)
https://codereview.chromium.org/12211008/diff/6001/chrome/renderer/memory_benchmarking_extension.cc File chrome/renderer/memory_benchmarking_extension.cc (right): https://codereview.chromium.org/12211008/diff/6001/chrome/renderer/memory_benchmarking_extension.cc#newcode19 chrome/renderer/memory_benchmarking_extension.cc:19: class MemoryBenchmarkingWrapper : public v8::Extension { On 2013/02/06 12:24:45, ...
7 years, 10 months ago (2013-02-06 12:31:41 UTC) #17
Dai Mikurube (NOT FULLTIME)
Thanks. :) https://codereview.chromium.org/12211008/diff/6001/chrome/renderer/memory_benchmarking_extension.cc File chrome/renderer/memory_benchmarking_extension.cc (right): https://codereview.chromium.org/12211008/diff/6001/chrome/renderer/memory_benchmarking_extension.cc#newcode19 chrome/renderer/memory_benchmarking_extension.cc:19: class MemoryBenchmarkingWrapper : public v8::Extension { On ...
7 years, 10 months ago (2013-02-06 12:38:01 UTC) #18
nduca
Lets stick to chrome.benchmarking convention. Wrt js debate, I understand the assertion. Your call whether ...
7 years, 10 months ago (2013-02-06 12:41:27 UTC) #19
nduca
lgtm
7 years, 10 months ago (2013-02-06 12:54:39 UTC) #20
Dai Mikurube (NOT FULLTIME)
Added piman@ for content/ OWNER review. piman, could you take a look at this? I'm ...
7 years, 10 months ago (2013-02-06 12:59:32 UTC) #21
piman
LGTM+nit https://codereview.chromium.org/12211008/diff/15008/content/renderer/memory_benchmarking_extension.cc File content/renderer/memory_benchmarking_extension.cc (right): https://codereview.chromium.org/12211008/diff/15008/content/renderer/memory_benchmarking_extension.cc#newcode10 content/renderer/memory_benchmarking_extension.cc:10: #if !defined(NO_TCMALLOC) && (defined(OS_LINUX) || defined(OS_CHROMEOS)) nit: on ...
7 years, 10 months ago (2013-02-06 18:11:51 UTC) #22
Dai Mikurube (NOT FULLTIME)
Thanks, piman. I'll be committing it. https://codereview.chromium.org/12211008/diff/15008/content/renderer/memory_benchmarking_extension.cc File content/renderer/memory_benchmarking_extension.cc (right): https://codereview.chromium.org/12211008/diff/15008/content/renderer/memory_benchmarking_extension.cc#newcode10 content/renderer/memory_benchmarking_extension.cc:10: #if !defined(NO_TCMALLOC) && ...
7 years, 10 months ago (2013-02-07 00:41:42 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dmikurube@chromium.org/12211008/8002
7 years, 10 months ago (2013-02-07 00:55:59 UTC) #24
commit-bot: I haz the power
7 years, 10 months ago (2013-02-07 03:59:58 UTC) #25
Message was sent while issue was closed.
Change committed as 181185

Powered by Google App Engine
This is Rietveld 408576698