This is expected. Support for the "arguments" object in the d8 shell
requires stuff that's not available in shared library builds. Please use "make
native" to build a statically linked d8 for running the tick processor.

Note that profiling involves two steps:
1.) Generate the log file by running your program/benchmark/whatever with
--prof. For this, you should obviously use the V8 version you care about.
Generally, I wouldn't expect shared vs. static builds to make a difference,
but you're welcome to try both and verify this.
2.) Process the generated log file and print the profile. This just
requires *any* d8 shell capable of executing the tick processor script --
the version and build options don't matter, as no new performance data is
gathered during this step.


On Tue, Mar 5, 2013 at 8:34 PM, Patrick Marques
<[email protected]>wrote:

> HI,
>
> I'm trying to profile a node.js application using V8 profiler/analyzer. I
> tried to make V8 as shared library and link node to it and apparently
> everything is ok, but when I use the linux-tick-processor this gives and
> error:
>
> tickprocessor-driver.js:46 ReferenceError: argumetns is not defined
> var params = processArgumetns(arguments);
>
> To make v8 I run "make native library=shared"
> I'm running this linux-tick-processor with D8_PATH="<d8 path>/out/native"
>
> NOTE:
> If I make V8 without the library=shared, it goes ok (gives the report)
> even with several lines "unknown code stat: undefined", but the node.js
> is not using the same v8 version so the error could be where
>
> regards,
> PM
>
>  --
> --
> v8-users mailing list
> [email protected]
> http://groups.google.com/group/v8-users
> ---
> You received this message because you are subscribed to the Google Groups
> "v8-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to