facebook/hhvm — pull request #1254 by rbelenov (2013-11-08 10:05:07+00:00)
Title: Optionally report JIT code information to Intel VTune Amplifier XE

Intel VTune Amplifier XE (http://software.intel.com/en-us/intel-vtune-amplifier-xe), the performance analysis tool, supports mapping of performance data from IP addresses to function names and source file/lines for custom JIT engines; the engine should provide mapping from generated code to source using JIT API (http://software.intel.com/en-us/node/458070). This patch add the reporting to hhvm, allowing to profile PHP code execution and see both generated assembly and PHP source for hotspots.

The reporting is controlled via Eval.JitUseVtuneAPI runtime option, so the default behaviour is not affected. If the option is set and hhvm is profiled by VTune, the information on compiled code is reported via JIT API and stored in data file which is used during postprocessing and data visualization.

The patch includes some files from VTune; the are distrubuted under BSD license.