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

Issue 1523015: C++ profiles processor: align browser mode with the old implementation, sample VM state. (Closed)

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

Description

C++ profiles processor: align browser mode with the old implementation, sample VM state. In browser (DevTools) mode, only non-native JS code and callbacks are reported. Also, added "(garbage collector)" entry which accumulates samples count in GC state. Trying to display "(compiler)" and "(external)" only brings confusion, because it ends up in displaying scripts code under "(compiler)" node, and DOM event handlers under "(external)" node, which looks weird. Committed: http://code.google.com/p/v8/source/detail?r=4357

Patch Set 1 #

Patch Set 2 : small fix #

Total comments: 1

Patch Set 3 : Using Script::type to filter out native scripts. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+213 lines, -115 lines) Patch
M src/compiler.cc View 3 chunks +12 lines, -6 lines 0 comments Download
M src/cpu-profiler.h View 1 2 3 chunks +6 lines, -4 lines 0 comments Download
M src/cpu-profiler.cc View 1 2 5 chunks +5 lines, -0 lines 0 comments Download
M src/cpu-profiler-inl.h View 1 chunk +14 lines, -0 lines 0 comments Download
M src/globals.h View 1 chunk +5 lines, -0 lines 0 comments Download
M src/log.h View 2 chunks +8 lines, -0 lines 0 comments Download
M src/log.cc View 1 chunk +10 lines, -7 lines 0 comments Download
M src/log-inl.h View 1 2 3 chunks +27 lines, -3 lines 0 comments Download
M src/platform.h View 1 1 chunk +3 lines, -3 lines 0 comments Download
M src/platform-linux.cc View 1 chunk +20 lines, -25 lines 0 comments Download
M src/platform-macos.cc View 2 chunks +9 lines, -14 lines 0 comments Download
M src/platform-win32.cc View 1 chunk +12 lines, -17 lines 0 comments Download
M src/profile-generator.h View 4 chunks +12 lines, -2 lines 0 comments Download
M src/profile-generator.cc View 3 chunks +35 lines, -30 lines 0 comments Download
M src/profile-generator-inl.h View 1 2 2 chunks +34 lines, -4 lines 0 comments Download
M test/cctest/test-cpu-profiler.cc View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
mnaganov (inactive)
Sending message manually because upload had finished with 500 error.
10 years, 8 months ago (2010-04-07 10:09:50 UTC) #1
Søren Thygesen Gjesse
LGTM Maybe we should consider renaming the flag --prof-browser-mode to something like --prof-js-only. http://codereview.chromium.org/1523015/diff/2001/3001 File ...
10 years, 8 months ago (2010-04-07 11:09:20 UTC) #2
mnaganov (inactive)
On 2010/04/07 11:09:20, Søren Gjesse wrote: > LGTM > > Maybe we should consider renaming ...
10 years, 8 months ago (2010-04-07 11:29:15 UTC) #3
Søren Thygesen Gjesse
10 years, 8 months ago (2010-04-07 11:55:22 UTC) #4
On 2010/04/07 11:29:15, Michail Naganov wrote:
> On 2010/04/07 11:09:20, Søren Gjesse wrote:
> > LGTM
> > 
> > Maybe we should consider renaming the flag --prof-browser-mode to something
> like
> > --prof-js-only.
> > 
> 
> We actually can have 3 orthogonal choices:
>  - whether to leave only user JS code;
>  - whether we need to add "(program)";
>  - should we add shared libraries code entries to code map;
> 
> The "browser mode" should set these to "true", "true", "false". It looks like
> for a VM developer the values should be opposite. Do you see any need for an
> intermediate state? If not, then a single "browser mode" flag is enough.

I do think that the one flag should be sufficient. It was mainly the name that I
was wondering about, as that mode might not be a browser only thing, but also
useful when V8 is used in other places e.g. node.js.

> 
> > http://codereview.chromium.org/1523015/diff/2001/3001
> > File src/cpu-profiler.cc (right):
> > 
> > http://codereview.chromium.org/1523015/diff/2001/3001#newcode231
> > src/cpu-profiler.cc:231: bool
ProfilerEventsProcessor::IsNameOfNative(String*
> > name) {
> > This seems like a bit of a hack. The script object have a type
(Script::Type).
> > Will it be be possible to push that through?
> 
> Great hint, I didn't know that, thanks! Yes, I'll change code to use that
field
> instead of matching against script name.

Powered by Google App Engine
This is Rietveld 408576698