Analyzers
Talk to fellow users of Intel Analyzer tools (Intel VTune™ Profiler, Intel Advisor)
4995 Discussions

Multiple sampling runs without restarting application?

horwatsmh
Beginner
407 Views
I have a graphical application that takes about 20 seconds to start up and another 20 seconds to put into a state where I want profiling to occur. I am try to collect statistics for 12 callibration and 12 sampling runs, but I don't want Vtune to keep restarting the application for each sampling run. Rather, what I want to do is start my application, then have vtune run through all 20 or so sampling runs one after another.



This is what I have tried so far:



1) Open Advanced Activity Configuration



2) Set the duration to 30 seconds because I want to run each sampling run for 30 seconds.



3) Set 'start with data collection paused' to true because I want to choose when to start collecting data.



4) Create a new Sampling collector and configure it for the events I want. I also turn off 'Terminate application when activity ends'



5) Create a new Counter collector and similar turn off 'Terminate application when activity ends'



6) Under 'Application/Module profiles' I create new module. I configure it so it so that 'Application to Launch' is empty, and 'Modules of interest' list the main .exe and one .dll I want to profile. If I set application to launch to the .exe, I think Vtune just keeps restarting my app for each sampling run and I eventually have 20 or so copys of my app open. Is there some way to stop this?



7) I start my application and set it into the state I want to profile it in.



8) I press play to start the runs and unpause it.



Unfortunately, no results are collected. I suspect I'm misconfiguring Vtune.



This is from the output window:



Fri Feb 03 19:40:01 2006 (Run 1) The Sampling Collector is calibrating its collection parameters for the following event(s): 64k/4M Aliasing Conflicts, Non-Halted Clockticks, x87 Output Assists.

Fri Feb 03 19:40:03 2006 The Counter Monitor collector is collecting data.

Fri Feb 03 19:40:06 2006 The Counter Monitor collector failed to collect logged data. Make sure the selected trigger(s) are working.

Fri Feb 03 19:40:06 2006 (Run 1) The Sampling Collector is collecting samples based on the following event(s): Clockticks, 64k/4M Aliasing Conflicts, Non-Halted Clockticks, x87 Output Assists.

Fri Feb 03 19:40:19 2006 (Run 1) The Sampling Collector failed to collect data because the selected event(s) did not occur.

Fri Feb 03 19:40:19 2006 (Run 2) The Sampling Collector is calibrating its collection parameters for the following event(s): x87 Instructions Retired.

Fri Feb 03 19:40:31 2006 (Run 2) The Sampling Collector is collecting samples based on the following event(s): x87 Instructions Retired.

Fri Feb 03 19:40:44 2006 (Run 2) The Sampling Collector failed to collect data because the selected event(s) did not occur.

Fri Feb 03 19:40:44 2006 (Run 3) The Sampling Collector is calibrating its collection parameters for the following event(s): x87 Input Assists.

Fri Feb 03 19:40:56 2006 (Run 3) The Sampling Collector is collecting samples based on the following event(s): x87 Input Assists.

Fri Feb 03 19:41:08 2006 (Run 3) The Sampling Collector failed to collect data because the selected event(s) did not occur.

Fri Feb 03 19:41:09 2006 (Run 4) The Sampling Collector is calibrating its collection parameters for the following event(s): Uops Retired.

Fri Feb 03 19:41:21 2006 (Run 4) The Sampling Collector is collecting samples based on the following event(s): Uops Retired.

Fri Feb 03 19:41:33 2006 (Run 4) The Sampling Collector failed to collect data because the selected event(s) did not occur.

Fri Feb 03 19:41:34 2006 (Run 5) The Sampling Collector is calibrating its collection parameters for the following event(s): Speculative Uops Retired.

Fri Feb 03 19:41:46 2006 (Run 5) The Sampling Collector is collecting samples based on the following event(s): Speculative Uops Retired.

Fri Feb 03 19:41:58 2006 (Run 5) The Sampling Collector failed to collect data because the selected event(s) did not occur.

Fri Feb 03 19:41:59 2006 (Run 6) The Sampling Collector is calibrating its collection parameters for the following event(s): Mispredicted Branches Retired.

Fri Feb 03 19:42:11 2006 (Run 6) The Sampling Collector is collecting samples based on the following event(s): Mispredicted Branches Retired.

Fri Feb 03 19:42:23 2006 (Run 6) The Sampling Collector failed to collect data because the selected event(s) did not occur.

Fri Feb 03 19:42:24 2006 (Run 7) The Sampling Collector is calibrating its collection parameters for the following event(s): Machine Clear Count.

Fri Feb 03 19:42:36 2006 (Run 7) The Sampling Collector is collecting samples based on the following event(s): Machine Clear Count.

Fri Feb 03 19:42:49 2006 (Run 7) The Sampling Collector failed to collect data because the selected event(s) did not occur.

Fri Feb 03 19:42:49 2006 (Run 8) The Sampling Collector is calibrating its collection parameters for the following event(s): Loads Retired.

Fri Feb 03 19:43:01 2006 (Run 8) The Sampling Collector is collecting samples based on the following event(s): Loads Retired.

Fri Feb 03 19:43:14 2006 (Run 8) The Sampling Collector failed to collect data because the selected event(s) did not occur.

Fri Feb 03 19:43:14 2006 (Run 9) The Sampling Collector is calibrating its collection parameters for the following event(s): Branches Retired.

Fri Feb 03 19:43:26 2006 (Run 9) The Sampling Collector is collecting samples based on the following event(s): Branches Retired.

Fri Feb 03 19:43:39 2006 (Run 9) The Sampling Collector failed to collect data because the selected event(s) did not occur.

...



I am using Vtune 8.0, build 21288. Here are some system specs, just in case:



------------------

System Information

------------------

Time of this report: 2/3/2006, 19:45:44

Machine name: ZORN

Operating System: Windows XP Professional (5.1, Build 2600) Service Pack 2 (2600.xpsp_sp2_gdr.050301-1519)

Language: English (Regional Setting: English)

System Manufacturer: Dell Computer Corporation

System Model: Inspiron 5160

BIOS: Phoenix ROM BIOS PLUS Version 1.10 A05

Processor: Mobile Intel Pentium 4 CPU 3.20GHz (2 CPUs)

Memory: 1024MB RAM

Page File: 915MB used, 1546MB available

Windows Dir: C:WINDOWS

DirectX Version: DirectX 9.0c (4.09.0000.0904)

DX Setup Parameters: Not found

DxDiag Version: 5.03.2600.2180 32bit Unicode
0 Kudos
3 Replies
ehackster
Beginner
407 Views
Hi,

You say you're using VTune 8.0 but you mention Windows XP as your OS. Are you running VTune 8.0 for Linux in a virtual machine?

Thanks.
0 Kudos
horwatsmh
Beginner
407 Views
There was a product update I downloaded that took me from v7.?? to v8. Its available somewhere here on the website, IIRC it was under premium support section?

Here are the contents of my about box:

Intel VTune Performance Analyzer 8.0
Build:21288
Copyright (C) 2000-2006 Intel Corporation. All rights reserved.
Portions Copyright (C) 1999, 2001 VideoSoft

I am just running Windows XP Professional.
0 Kudos
David_A_Intel1
Employee
407 Views
You don't need to specify *any* App/Module Profile (AMP)! Just do everything else you said, with the sampling collector only and no AMP, and see if that works. You only need an AMP if you actually want VTune to start something! :-}
0 Kudos
Reply