<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Is there a way to profile php interpreted code? in Analyzers</title>
    <link>https://community.intel.com/t5/Analyzers/Is-there-a-way-to-profile-php-interpreted-code/m-p/1077160#M15181</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;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.&lt;/P&gt;

&lt;P&gt;I had a look on JIT Profiling API as I was hooked by the title: "&lt;EM&gt;Profiling Runtime Generated and&amp;nbsp;&lt;STRONG&gt;Interpreted&lt;/STRONG&gt; Code with Intel®&amp;nbsp;VTune™&amp;nbsp;Amplifier&lt;/EM&gt;". Unfortunately it seems that the library&amp;nbsp;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;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).&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;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 &amp;amp; Java VM's for managed code profiling could they be reused somehow for other kind of VMs? Other options?&lt;/P&gt;

&lt;P&gt;Many Thanks,&lt;/P&gt;

&lt;P&gt;Bogdan&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 07 Jan 2016 16:10:55 GMT</pubDate>
    <dc:creator>Bogdan_A_Intel</dc:creator>
    <dc:date>2016-01-07T16:10:55Z</dc:date>
    <item>
      <title>Is there a way to profile php interpreted code?</title>
      <link>https://community.intel.com/t5/Analyzers/Is-there-a-way-to-profile-php-interpreted-code/m-p/1077160#M15181</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;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.&lt;/P&gt;

&lt;P&gt;I had a look on JIT Profiling API as I was hooked by the title: "&lt;EM&gt;Profiling Runtime Generated and&amp;nbsp;&lt;STRONG&gt;Interpreted&lt;/STRONG&gt; Code with Intel®&amp;nbsp;VTune™&amp;nbsp;Amplifier&lt;/EM&gt;". Unfortunately it seems that the library&amp;nbsp;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;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).&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;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 &amp;amp; Java VM's for managed code profiling could they be reused somehow for other kind of VMs? Other options?&lt;/P&gt;

&lt;P&gt;Many Thanks,&lt;/P&gt;

&lt;P&gt;Bogdan&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2016 16:10:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Is-there-a-way-to-profile-php-interpreted-code/m-p/1077160#M15181</guid>
      <dc:creator>Bogdan_A_Intel</dc:creator>
      <dc:date>2016-01-07T16:10:55Z</dc:date>
    </item>
    <item>
      <title>I don't think there is a way</title>
      <link>https://community.intel.com/t5/Analyzers/Is-there-a-way-to-profile-php-interpreted-code/m-p/1077161#M15182</link>
      <description>&lt;P&gt;I don't think there is a way to use VTune(TM) Amplifier's result to interpret performance in PHP code level. I have escalated this feature request to development team.&lt;/P&gt;

&lt;P&gt;Are there others who needs this feature in their projects?&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2016 03:03:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Is-there-a-way-to-profile-php-interpreted-code/m-p/1077161#M15182</guid>
      <dc:creator>Peter_W_Intel</dc:creator>
      <dc:date>2016-01-08T03:03:46Z</dc:date>
    </item>
    <item>
      <title>Many thanks for the feedback</title>
      <link>https://community.intel.com/t5/Analyzers/Is-there-a-way-to-profile-php-interpreted-code/m-p/1077162#M15183</link>
      <description>&lt;P&gt;Many thanks for the feedback Peter!&lt;/P&gt;

&lt;P&gt;Actually, I am part of a team dealing with performance analysis and optimizations on open source scripting languages and we have a real interest about such kind of feature. We work on several projects, some of them dealing with jitted code (like HHVM) while others not (like PHP and Python). The list is open.&lt;/P&gt;

&lt;P&gt;At my knowledge HHVM already has an extension based on JIT profiling API but even&amp;nbsp;then there are frequent switches between jitted code and interpreted code, so I am not sure how effective it is the current implementation.&lt;/P&gt;

&lt;P&gt;Kind Regards,&lt;/P&gt;

&lt;P&gt;Bogdan&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2016 09:20:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Is-there-a-way-to-profile-php-interpreted-code/m-p/1077162#M15183</guid>
      <dc:creator>Bogdan_A_Intel</dc:creator>
      <dc:date>2016-01-08T09:20:33Z</dc:date>
    </item>
  </channel>
</rss>

