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.

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.

http://codereview.chromium.org/1523015

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

To unsubscribe, reply using "remove me" as the subject.

Reply via email to