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

Issue 1105009: [not for commit] V8 profiler API preview. (Closed)

Created:
10 years, 9 months ago by mnaganov (inactive)
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

[not for commit] V8 profiler API preview. This API is enough for getting JS-only profiles (for DevTools.) In order to replace tick processor scripts, it will be needed to add the following: - import of address -> function maps for C / C++ code; - retrieval of processing statistics (unresolved ticks, etc.); - filtering (for filtering ICs and by VM state); - import and export of stubs / builtins names from snapshots; See http://codereview.chromium.org/1547023.

Patch Set 1 #

Total comments: 7

Patch Set 2 : Updated to align with JSC #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+169 lines, -0 lines) Patch
A include/v8-profiler.h View 1 1 chunk +169 lines, -0 lines 6 comments Download

Messages

Total messages: 10 (0 generated)
mnaganov (inactive)
Mads and Soeren, Can you please take a look at the API for the C++ ...
10 years, 9 months ago (2010-03-22 15:29:12 UTC) #1
Søren Thygesen Gjesse
Some comments below, but it LGTM. I will prefer a preprocessor directive for switching between ...
10 years, 9 months ago (2010-03-23 08:25:11 UTC) #2
Mads Ager (chromium)
The interface looks good to me. http://codereview.chromium.org/1105009/diff/1002/3001 File include/v8-profiler.h (right): http://codereview.chromium.org/1105009/diff/1002/3001#newcode112 include/v8-profiler.h:112: * CpuProfile contains ...
10 years, 9 months ago (2010-03-23 08:38:26 UTC) #3
mnaganov (inactive)
Thanks! Feel free to provide any additional comments, if you will have them later. http://codereview.chromium.org/1105009/diff/1/2 ...
10 years, 9 months ago (2010-03-23 09:35:37 UTC) #4
zundel
http://codereview.chromium.org/1105009/diff/1002/3001 File include/v8-profiler.h (right): http://codereview.chromium.org/1105009/diff/1002/3001#newcode152 include/v8-profiler.h:152: * profiles with the same title are silently ignored. ...
10 years, 9 months ago (2010-03-26 12:53:33 UTC) #5
mnaganov (inactive)
On 2010/03/26 12:53:33, zundel wrote: > http://codereview.chromium.org/1105009/diff/1002/3001 > File include/v8-profiler.h (right): > > http://codereview.chromium.org/1105009/diff/1002/3001#newcode152 > ...
10 years, 9 months ago (2010-03-26 12:57:50 UTC) #6
zundel
http://codereview.chromium.org/1105009/diff/1002/3001 File include/v8-profiler.h (right): http://codereview.chromium.org/1105009/diff/1002/3001#newcode129 include/v8-profiler.h:129: }; One thing I love about the v8 profiling ...
10 years, 9 months ago (2010-03-26 13:49:15 UTC) #7
zundel
http://codereview.chromium.org/1105009/diff/1/2 File include/v8-profiler.h (right): http://codereview.chromium.org/1105009/diff/1/2#newcode88 include/v8-profiler.h:88: */ On 2010/03/23 09:35:37, Michail Naganov wrote: > On ...
10 years, 9 months ago (2010-03-26 13:57:33 UTC) #8
mnaganov (inactive)
On 2010/03/26 13:49:15, zundel wrote: > http://codereview.chromium.org/1105009/diff/1002/3001 > File include/v8-profiler.h (right): > > http://codereview.chromium.org/1105009/diff/1002/3001#newcode129 > ...
10 years, 9 months ago (2010-03-26 15:00:52 UTC) #9
mnaganov (inactive)
10 years, 9 months ago (2010-03-26 15:02:07 UTC) #10
On 2010/03/26 13:57:33, zundel wrote:
> http://codereview.chromium.org/1105009/diff/1/2
> File include/v8-profiler.h (right):
> 
> http://codereview.chromium.org/1105009/diff/1/2#newcode88
> include/v8-profiler.h:88: */
> On 2010/03/23 09:35:37, Michail Naganov wrote:
> > On 2010/03/23 08:25:11, Søren Gjesse wrote:
> > > Should we consider using uint64_t and change to a higher resolution than
> > > milliseconds?
> > 
> > I propose doubles for easier interconnection with JavaScript, where Numbers
> are
> > doubles.
> > 
> > I think there is no need to try to achieve a better resolution, than
> > milliseconds with a software-only (that is, not using CPU h/w counters)
> > profiler.
> 
> I concur on the double change, plus it would allow you to specify
> sub-millisecond if you needed to.
> 
> I've been playing with profiling activity over short intervals.  I did an
> experimental change to the profiler on Mac which uses usleep() with lower
> granularity profiles and it was somewhat useful (if not entirely accurate). 
But
> the best profile timer (linux itimer TIMER_PROFILE) only gave about 2-4ms
> granularity when set to 1ms anyway.

Yes. Higher sampling frequencies are possible on Mac and Windows, but not on
Linux.

Powered by Google App Engine
This is Rietveld 408576698