No.

You can get method-level tracing with --trace, and the built-in ARM/MIPS
simulators can trace simulated machine instructions with --trace-sim.

If you really need tracing with the granularity of AST nodes or similar, it
would probably be easier to use a JS engine that can run in purely
interpreted mode.


On Tue, Nov 25, 2014 at 12:26 AM, Stefan Bucur <stefan.bu...@gmail.com>
wrote:

> Hi,
>
> Is there any recommended way (perhaps an API?) to insert instrumentation
> in JavaScript code executed by V8?
>
> Ideally, I would expect a callback mechanism that allows me to intercept &
> change the code at different representations levels (e.g., AST, Hydrogen
> IR, or Lythium native code). My current use case is to log all the
> JavaScript instructions executed by the interpreter---this essentially
> would give me a dynamic trace of the running script.
>
> Thanks,
> Stefan
>
>  --
> --
> v8-users mailing list
> v8-users@googlegroups.com
> 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 v8-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- 
v8-users mailing list
v8-users@googlegroups.com
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 v8-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to