Hi,
I am looking for a way to profile php interpreted code. I suppose VTune don't offer native support for it but I wander if there are some APIs to be integrated in the Zend PHP engine for this purpose.
I had a look on JIT Profiling API as I was hooked by the title: "Profiling Runtime Generated and Interpreted Code with Intel® VTune™ Amplifier". Unfortunately it seems that the library might work for native JIT code but is useless for the case where there is no JIT in place and the bytecode is purely interpreted (meaning that VTune sampling interrupts will occur only in the PHP engine code, not in the interpreted bytecode).
Is there a way to configure some interpreter engine callbacks in VTune for providing the bytecode/source code related information? The APIs used for .NET & Java VM's for managed code profiling could they be reused somehow for other kind of VMs? Other options?
Many Thanks,
Bogdan