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

Issue 196103006: Add V8 heap statistics in a time-line manner in tracing. (Closed)

Created:
6 years, 9 months ago by Dai Mikurube (NOT FULLTIME)
Modified:
5 years, 1 month ago
CC:
chromium-reviews, kouhei (in TOK)
Base URL:
/home/dmikurube/repos/chromium@work-sai-json
Visibility:
Public.

Description

Add V8 heap statistics in a time-line manner in tracing. BUG=393091

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : rebased #

Total comments: 4

Patch Set 5 : #

Patch Set 6 : addressed #

Total comments: 6

Patch Set 7 : addressed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+402 lines, -97 lines) Patch
M chrome/renderer/chrome_render_process_observer.cc View 1 2 3 3 chunks +13 lines, -97 lines 0 comments Download
M content/content_renderer.gypi View 1 2 3 4 5 6 2 chunks +5 lines, -0 lines 0 comments Download
A content/public/renderer/v8_heap_statistics_collector.h View 1 2 3 4 5 6 1 chunk +40 lines, -0 lines 0 comments Download
M content/renderer/render_thread_impl.h View 1 2 3 4 5 6 3 chunks +7 lines, -0 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 3 4 5 6 3 chunks +5 lines, -0 lines 0 comments Download
M content/renderer/render_widget.cc View 1 2 3 2 chunks +7 lines, -0 lines 0 comments Download
A content/renderer/v8_heap_statistics_collector_impl.h View 1 2 3 4 5 6 1 chunk +40 lines, -0 lines 0 comments Download
A content/renderer/v8_heap_statistics_collector_impl.cc View 1 2 3 4 5 6 1 chunk +113 lines, -0 lines 0 comments Download
A content/renderer/v8_heap_statistics_monitor.h View 1 2 3 4 5 1 chunk +73 lines, -0 lines 0 comments Download
A content/renderer/v8_heap_statistics_monitor.cc View 1 2 3 4 5 1 chunk +99 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
Dai Mikurube (NOT FULLTIME)
Just a memo. Got an error in building. Undefined symbols for architecture i386: "content::V8HeapStatisticsMonitor::IsMonitoring() const", ...
6 years, 9 months ago (2014-03-21 16:04:58 UTC) #1
Dai Mikurube (NOT FULLTIME)
Ah, I just forgot gyp_chromium.
6 years, 9 months ago (2014-03-21 16:13:27 UTC) #2
Dai Mikurube (NOT FULLTIME)
See also: https://codereview.chromium.org/200843002/
6 years, 9 months ago (2014-03-21 16:16:30 UTC) #3
Dai Mikurube (NOT FULLTIME)
It worked in about:tracing!
6 years, 9 months ago (2014-03-21 16:38:15 UTC) #4
Dai Mikurube (NOT FULLTIME)
I forgot to loop in nduca@. It's a rebased version of your patch.
6 years, 8 months ago (2014-04-11 07:17:52 UTC) #5
nduca
oh i just noticed this patch. is this still something you want to land? :$
6 years, 6 months ago (2014-06-25 02:46:39 UTC) #6
Dai Mikurube (NOT FULLTIME)
Ah, I'm not very actively working on it and memory usage testing. (I suspended it ...
6 years, 6 months ago (2014-06-25 07:50:43 UTC) #7
Dai Mikurube (NOT FULLTIME)
+kouhei I'll rebase it later soon.
6 years, 5 months ago (2014-07-07 05:54:53 UTC) #8
Dai Mikurube (NOT FULLTIME)
Rebased.
6 years, 5 months ago (2014-07-07 08:33:28 UTC) #9
nduca
heheh lgtm on my part. + @fmeawad and @rschoen as fyi since this improves our ...
6 years, 5 months ago (2014-07-07 17:13:53 UTC) #10
nduca
+rschon & fmeawad for real
6 years, 5 months ago (2014-07-07 17:14:23 UTC) #11
Dai Mikurube (NOT FULLTIME)
Thanks, Nat. :) fmeawad and rschoen: could you take a look? (I'll update the subject ...
6 years, 5 months ago (2014-07-08 05:53:50 UTC) #12
fmeawad
On 2014/07/08 05:53:50, Dai Mikurube wrote: > Thanks, Nat. :) > > fmeawad and rschoen: ...
6 years, 5 months ago (2014-07-10 18:21:17 UTC) #13
fmeawad
Were these files moved, or the year need update? https://codereview.chromium.org/196103006/diff/60001/content/public/renderer/v8_heap_statistics_collector.h File content/public/renderer/v8_heap_statistics_collector.h (right): https://codereview.chromium.org/196103006/diff/60001/content/public/renderer/v8_heap_statistics_collector.h#newcode1 content/public/renderer/v8_heap_statistics_collector.h:1: ...
6 years, 5 months ago (2014-07-10 18:22:23 UTC) #14
Dai Mikurube (NOT FULLTIME)
Thanks, fmeawad! Jochen, could you take a look? https://codereview.chromium.org/196103006/diff/60001/content/public/renderer/v8_heap_statistics_collector.h File content/public/renderer/v8_heap_statistics_collector.h (right): https://codereview.chromium.org/196103006/diff/60001/content/public/renderer/v8_heap_statistics_collector.h#newcode1 content/public/renderer/v8_heap_statistics_collector.h:1: // ...
6 years, 5 months ago (2014-07-11 04:34:38 UTC) #15
jochen (gone - plz use gerrit)
why not collect the stats per worker (instead of showing them all together in one ...
6 years, 5 months ago (2014-07-11 09:19:41 UTC) #16
Dai Mikurube (NOT FULLTIME)
Thanks, Jochen. The main reason of all together in one metric is consistency with the ...
6 years, 5 months ago (2014-07-17 05:21:39 UTC) #17
jochen (gone - plz use gerrit)
the memory usage will still jump randomly up and down depending on which workers are ...
6 years, 5 months ago (2014-07-17 07:06:00 UTC) #18
Dai Mikurube (NOT FULLTIME)
I'm not very sure, but I wonder: * Doesn't it affect performance in some way? ...
6 years, 5 months ago (2014-07-17 08:45:01 UTC) #19
jochen (gone - plz use gerrit)
6 years, 5 months ago (2014-07-17 09:04:47 UTC) #20
On 2014/07/17 at 08:45:01, dmikurube wrote:
> I'm not very sure, but I wonder:
> * Doesn't it affect performance in some way?
no

> * include/v8.h says that "V8 can remember only a single callback". Doesn't it
affect any other parts?
yeah, that might require synchronizing with oilpan.

> 
> The Collector is called also from task manager and memory_internals, not only
from about:tracing. Changing it may affect them, existing parts. (In other
words, the current task manager is working with the current
HeapStatisticsCollector.)

does the current collector also report a random subsets of workers or just the
main isolate?

taking a step back, for about:tracing, we should just create the right trace
events (or actually, hook them up, because v8 already creates histograms for
heap usage).

Powered by Google App Engine
This is Rietveld 408576698