I have read the same document. As I am interested in CPU counters EBS will be used. I don't like a requirement to link with VTune static library. I prefer another way. When I worked on perfromance analysis of Java JIT code with VTune I could not rebuild Java VM. I ran JVM with a special JVMTI agent which was gathering information about generated code. Then I merged the information with VTune data. This method is more complicated but it allows analyzing production versions without need of recompilation. A main disadvantage of the method is a impossibility to use a power of VTune GUI.
Best regards, Evgeny Astigeevich. On Mar 24, 3:52 pm, Mikhail Naganov <[email protected]> wrote: > I've found Intel's manual about VTune support for JIT > code:http://software.intel.com/file/6737 > > VTune doesn't support code moves and deletes. It seems easy to support > sampling mode (the same way as for OProfile.), this should work for > Linux and Windows. As for call graph (instrumentation) mode, more work > will be required to implement enter / leave calls from code generated > by V8. > > On Wed, Mar 24, 2010 at 14:13, Mikhail Naganov > > > > <[email protected]> wrote: > > Hi Evgeny, > > > I implemented support for reporting JIT-ted code to OProfile (see > >http://code.google.com/p/v8/wiki/V8Oprofile). I can help with an > > analogous support for VTune (I didn't know it supports this). > > > Grep V8 sources for OProfileAgent. As for OProfile, it doesn't support > > code moves and deletes, so V8 needs to be run with them disabled. If > > VTune supports them, I can point where you need to insert > > instrumentation. > > > On Wed, Mar 24, 2010 at 13:52, Evgeny Astigeevich <[email protected]> wrote: > >> Thank you for advice. Moved discussion to v8-dev. > > >> As I know VTune supports Java and .Net applications by default. Other > >> VMs should communicate with VTune via JIT Profiling API. > >> Is anyone interested in VTune support in V8? > > >> Best regards, > >> Evgeny Astigeevich > > >> On Mar 23, 5:50 pm, Kevin Millikin <[email protected]> wrote: > >>> This question might be better answered on the v8-dev mailing list. > > >>> The disassembly from --print-code includes a section at the end of a > >>> function's code which is labeled "RelocInfo". There are "position" and > >>> "statement position" entries with an address (in the generated code) and a > >>> zero-based character offset from the start of the script containing the > >>> function. > > >>> A better way to do it would be to try to use VTune's JIT profiling > >>> support. > >>> I've never used it so I don't know how well it would work. There are > >>> hooks > >>> for oprofile support that you can look for in the code. > > >>> On Tue, Mar 23, 2010 at 3:32 PM, Evgeny Astigeevich > >>> <[email protected]>wrote: > > >>> > Hello, > > >>> > I am analyzing performance of V8 by using VTune. I run 'shell.exe with > >>> > '--print_code'' and merge VTune data with '--print_code' dump. > >>> > How can I get information about correspondence between machine code > >>> > and JS source line numbers? > >>> > I need the information to figure out which JS constructions cause CPU > >>> > stalls. > > >>> > Best regards, > >>> > Evgeny Astigeevich. > > >>> > -- > >>> > v8-users mailing list > >>> > [email protected] > >>> >http://groups.google.com/group/v8-users > > >>> > To unsubscribe from this group, send email to v8-users+ > >>> > unsubscribegooglegroups.com or reply to this email with the words > >>> > "REMOVE > >>> > ME" as the subject. > > >> -- > >> v8-dev mailing list > >> [email protected] > >>http://groups.google.com/group/v8-dev > > >> To unsubscribe from this group, send email to > >> v8-dev+unsubscribegooglegroups.com or reply to this email with the words > >> "REMOVE ME" as the subject. -- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev To unsubscribe from this group, send email to v8-dev+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.
