Thanks Jakob. I was hoping I could do this in V8, in order to target Node.js applications, in addition to browser code. I will dig the source code and see if I can directly plug my changes with a reasonable effort.
Stefan On Tuesday, November 25, 2014 9:02:09 AM UTC+1, Jakob Kummerow wrote: > > 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...@gmail.com > <javascript:>> 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-u...@googlegroups.com <javascript:> >> 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+u...@googlegroups.com <javascript:>. >> 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.