<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated on Wed, 25 Nov 2009 06:24:07 -0800 -->
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <atom:link href="http://software.intel.com/en-us/forums/intel-vtune-performance-analyzer/topic/69739/feed" rel="self" type="application/rss+xml" />
    <title>Intel Software Network - <![CDATA[ Vtune CLI for online monitoring of process? ]]> feed</title>
    <link>http://software.intel.com/en-us/forums/intel-vtune-performance-analyzer/topic/69739</link>
    <description></description>
    <language>en-us</language>
    <item>
      <title>Re: Vtune CLI for online monitoring of process?</title>
      <description><![CDATA[ <div style="margin:0px;">
<div id="quote_reply" style="margin-top: 5px; width: 100%;">
<div style="margin-left:2px;margin-right:2px;">Quoting - <a href="/en-us/profile/451224">titanius.anglesmith</a></div>
<div style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"><em>Is it possible to use vtune in an online fashion like monitoring an application on the fly via command line on Linux? to see what kind of cycles it is executing every some number of seconds.
<div><span style="font-family: Verdana, Arial, Helvetica, sans-serif;"><br /></span></div>
<div>I am looking into an application to get cycle events on the fly for a process, but couldn't find anything in the documentation mentioning online monitoring.</div>
<div><br /></div>
<div>Thanks!</div>
</em></div>
</div>
</div>
<br />Hi,<br /><br />You can monitor sampling data collection activity, and control it - stop/cancel/pause/resume, and query the activity.<br /><br />The command line is not "vtl" - that is <strong>ActivityController</strong>, use it in another shell.<br /><br />You can know more detail for ActivityController usage by opening vtune/doc/users_guide/index.htm (search "ActivityController" string), or use "ActivityController -help" in command line.<br /><br />ActivityController can't retrieve rich info such as cycles executed, process's status - this command line simply provides the status of activity only. <br /><br /><br />Hope it helps!<br /><br />Regards, Peter<br /><br /> ]]></description>
      <link>http://software.intel.com/en-us/forums/intel-vtune-performance-analyzer/topic/69739/</link>
      <pubDate>Sun, 08 Nov 2009 21:48:10 -0800</pubDate>
      <guid isPermaLink="true">http://software.intel.com/en-us/forums/intel-vtune-performance-analyzer/topic/69739/</guid>
      <category>ISN General</category>
    </item>
    <item>
      <title>Re: Vtune CLI for online monitoring of process?</title>
      <description><![CDATA[ Actually, you can use the <strong>duration </strong>command-line parameter to collect data for a finite amount of time.  You could then write a script that collects data for, say, 10 seconds, then dumps the results to the stdout and runs, again, in a loop.  You will need to play with the view options to figure out how you want to display the results, but this would give you the kind of output that top does, for example, displaying data every n seconds.<br /><br />For example,<br /><code>&gt; # create the activity<br />&gt; vtl activity p1 -d 10 -c sampling<br />&gt; # run the latest activity in the project<br />&gt; vtl run<br />&gt; vtl view -summary<br />&gt; vtl delete p1::r1 -f<br />&gt; # loop on these three commands</code><br /><br />If you put that in a loop, you can view the activity on a regular basis.  Note that in order to keep the data from bloating the disk, I've included a delete of the activity results.<br /><br />Here is an example script that collects data for 5 seconds that I threw together:<br /><br /><code>#!/bin/sh<br />vtl -q activity m$ -d 5 -c sampling<br />read -t 1 x<br />while [ $? -ne 0 ]<br />do<br /> echo "...collecting data..."<br /> vtl -q run<br /> echo "...displaying data..."<br /> vtl -q view -summary<br /> vtl -q delete m$::r1 -f<br /> read -t 1 x<br />done</code><br /><br />Hope that helps!<br /><br /> ]]></description>
      <link>http://software.intel.com/en-us/forums/intel-vtune-performance-analyzer/topic/69739/</link>
      <pubDate>Mon, 09 Nov 2009 15:08:00 -0800</pubDate>
      <guid isPermaLink="true">http://software.intel.com/en-us/forums/intel-vtune-performance-analyzer/topic/69739/</guid>
      <category>ISN General</category>
    </item>
    <item>
      <title>Re: Vtune CLI for online monitoring of process?</title>
      <description><![CDATA[ Thank you peter wang and MrAnderson. I'll try both of them and report back :)<br /><br />cheers<br /> ]]></description>
      <link>http://software.intel.com/en-us/forums/intel-vtune-performance-analyzer/topic/69739/</link>
      <pubDate>Mon, 09 Nov 2009 18:12:50 -0800</pubDate>
      <guid isPermaLink="true">http://software.intel.com/en-us/forums/intel-vtune-performance-analyzer/topic/69739/</guid>
      <category>ISN General</category>
    </item>
    <item>
      <title>Re: Vtune CLI for online monitoring of process?</title>
      <description><![CDATA[ <div style="margin:0px;"></div>
Cool. I have been able to extract many events using the script and its easy enough to make wrappers around :). Thanks a lot!<br /><br />One more question:<br /><br />Is it possible to sample just from some processes for the vtl command? like vtl...`pgrep firefox` either via a pid or a name ?  <br /><br /><br /> ]]></description>
      <link>http://software.intel.com/en-us/forums/intel-vtune-performance-analyzer/topic/69739/</link>
      <pubDate>Tue, 17 Nov 2009 22:51:18 -0800</pubDate>
      <guid isPermaLink="true">http://software.intel.com/en-us/forums/intel-vtune-performance-analyzer/topic/69739/</guid>
      <category>ISN General</category>
    </item>
    <item>
      <title>Re: Vtune CLI for online monitoring of process?</title>
      <description><![CDATA[ <div style="margin:0px;">
<div id="quote_reply" style="margin-top: 5px; width: 100%;">
<div style="margin-left:2px;margin-right:2px;">Quoting - <a href="/en-us/profile/451224">titanius.anglesmith</a></div>
<div style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"><em>Cool. I have been able to extract many events using the script and its easy enough to make wrappers around :). Thanks a lot!<br /><br />One more question:<br /><br />Is it possible to sample just from some processes for the vtl command? like vtl...`pgrep firefox` either via a pid or a name ?  <br /><br /><br /></em></div>
</div>
</div>
<br />You can use like -<br />"vtl view -a?::r? -processes" to list all processes for specific [activity|result], know id of interest of process<br />"vtl view -pid 0x??? -hf -mn module_name" to display all hot functions forinterest of module from specific process.<br /><br />Regards, Peter  ]]></description>
      <link>http://software.intel.com/en-us/forums/intel-vtune-performance-analyzer/topic/69739/</link>
      <pubDate>Tue, 17 Nov 2009 23:04:18 -0800</pubDate>
      <guid isPermaLink="true">http://software.intel.com/en-us/forums/intel-vtune-performance-analyzer/topic/69739/</guid>
      <category>ISN General</category>
    </item>
  </channel></rss>