SlideShare a Scribd company logo
During this session you will learn to:
Identify the features of VTune Performance Analyzer
Identify hotspots and bottlenecks in an application using
sampling
Objectives
VTune Performance is a powerful and easy-to-use software-
analysis tool.
It collects, analyses, and displays performance data for a
wide variety of applications.
It can be used to identify and locate the code snippets in your
application that show the highest amount of activity over a
specific period.
It also displays how an application interacts with the OS or
other software, such as drivers.
Exploring VTune Performance Analyzer
Various features of VTune Performance Analyzer are as
follows:
Sampling
Call graph
Counter monitor
Tuning assistant
Hotspots view
Features of VTune Performance Analyzer
Calculates the actual performance of
the system over a period and for
various processor events
►
Provides a graphical view of the flow of
an application and helps you identify
critical functions and timing details in the
application
►
Provides system-level performance
information, such as resource
consumption, during the execution of an
application
►
Provides tuning advice from an analysis
of the performance data. The tuning
advice helps you improve performance of
an application
►
Helps identify the area of code that takes
the maximum CPU time
►
VTune Performance Analyzer provides flexible user
interfaces.
Using these interfaces, you can manage and organize various
windows and analyze views, according to your requirements.
Working With VTune User Interface
Working With VTune User Interface (Contd.)
Tuning browser: The Tuning Browser window displays a
list of the contents of a project. This window enables you to
view the result of activities. The Tuning Browser window
also enables you to use all the activities related to the
project.
Output window: The Output window displays messages
during data collection and analysis.
Data view: Data views display analysis data in various
formats.
Menus and toolbars: Menus and toolbars provide easy
access to the common commands of the VTune
Performance Analyzer. Using these commands, you can
access the information that the VTune Performance
Analyzer provides.
Which data view displays all the threads that run within a
selected process?
Which data view enables you to pinpoint problem areas in
the code?
Just a minute
Answer:
Thread view
Source view
Identifying Wizards in VTune
The different wizards available in VTune Performance
Analyzer are displayed in the following table.
Name Description
Quick Performance Analysis
(QPA) wizard
It enables you to quickly analyze your application's performance.
This wizard enables you to create an activity with any combination of
sampling, counter monitor, and call graph collectors.
Complete setup wizard It enables you to create an activity and configure multiple collectors
at the same time. The wizard prompts you to enter values only for
the basic parameters and uses default values for others.
Counter monitor wizard It enables you to create an activity and configure the counter monitor
data collector. The wizard prompts you to enter values only for the
basic parameters, and uses default values for others.
Identifying Wizards in VTune (Contd.)
Name Description
Sampling wizard It enables you to create an activity and configure the sampling collector
to profile any type of application. The wizard prompts you to enter
values for the basic parameters and uses default values for others.
Call graph wizard It enables you to create an activity and configure the call graph data
collector to profile any type of application. The wizard prompts you to
enter values for the basic parameters and uses default values for
others.
Advanced Activity
Configuration wizard
It enables you to control all the steps of activity creation and
configuration.
You can add multiple data collectors and configure them. You can also
add application/module profiles to an activity and associate them with
any of the data collectors.
Use the Advanced Activity Configuration option offers more flexibility in
activity creation.
The different wizards available in VTune Performance
Analyzer are displayed in the following table.
Using Sampling
Sampling is the process of collecting a set of data for analysis
and representing the analyzed data in statistical format.
Sampling enables you to:
Identify hotspots
Identify bottlenecks
Hotspot is the section of code
that takes a long time to
execute.
It consumes a large amount of
processor time.
►
Bottleneck is the area of code
that slows down the execution
of the application.
All bottlenecks are hotspots but
all hotspots are not bottlenecks.
►
When you perform an activity by using time-based
sampling, the VTune Performance Analyzer:
Executes the application you have launched
Stops the processor at the sampling interval and collects
samples of the specified application
Stores sampling data in the buffer. When the buffer is full, it
stops sampling. The VTune Performance Analyzer then writes
the sampling data to the disk and resumes sampling
Continues to collect sampling data until the specified
application terminates or the specified sampling duration ends
Analyzes the collected data, creates an activity result in the
Tuning Browser window, and displays the total data collected
for each module
Using Sampling (Contd.)
Event Based Sampling (EBS) is performed on the processor
events.
EBS enables you to determine which process, thread,
module, function, or code line in the application is generating
the largest number of processor events.
Using Sampling (Contd.)
Sampling over time view shows the threads running during
data collection.
It displays the samples collected with respect to time for a
single event.
Using Sampling (Contd.)
You can use the Over Time view to gather the following
information:
Context switching: Enables you to determine if there is
excessive context switching
Processor utilization: Enables you to identify which processors
are idle at what times
Temporal location of hotspots: Enables you to view the
specific periods of time when a large number of events occurred
Thread interaction: Enables you to view the number of threads
in an application but not how they interact with each other
Using Sampling (Contd.)
Which wizard in sampling allows you to create an Activity
and configure the sampling collector to profile any type of
application?
Just a minute
Answer:
Sampling wizard
Problem Statement:
John has created an application in Java which involves the use of
a two-dimensional matrix. However, he finds that his application
takes a long time to execute. Therefore, John decides to analyze
the performance of the application using the event-based
sampling (EBS) feature of VTune Performance Analyzer. Help
John accomplish this task.
Activity: Performing Event-Based Sampling – 1
Solution
To analyze the performance of the application using EBS, you
need to perform the following tasks:
1. Configure EBS using the Sampling wizard.
2. Analyze sampling results.
Activity: Performing Event-Based Sampling – 1 (Contd.)
In this chapter, you learnt that:
Intel VTune Performance Analyzer is a powerful and
easy-to-use software-analysis tool.
VTune Performance Analyzer helps you identify and locate the
area of code in an application that shows the highest amount of
activity over a specific period.
VTune Performance Analyzer displays how an application
interacts with the OS or other software.
VTune Performance Analyzer provides a number of features,
which make it an efficient performance analysis tool. The
features are:
Sampling
Call graph
Counter monitor
Tuning assistant
Hotspots view
Summary
VTune Performance Analyzer provides flexible user interfaces to
manage and organize different windows.
Sampling is a process of collecting and testing a set of data for
relevant information and presenting the analyzed data in
statistical format.
Sampling helps you:
Identify hotspots
Identify bottlenecks
VTune Performance Analyzer provides two types of sampling
mechanisms to collect data. They are:
Time-based sampling (TBS): In TBS, the VTune Performance
Analyzer collects samples of an activity at regular intervals of
time.
Event-based sampling (EBS): In EBS, the VTune Performance
Analyzer collects samples of an activity at regular intervals of
processor event.
Summary (Contd.)

More Related Content

PPTX
HPLC Chromeleon Software
PPTX
PDF
STPA and Software Verification
PPTX
Unit 5 general principles, simulation software
PDF
Lo 09
PDF
Discrete Event Simulation in Healthcare
PPTX
Discrete event-simulation
PPT
Chapter3 general principles of discrete event simulation
HPLC Chromeleon Software
STPA and Software Verification
Unit 5 general principles, simulation software
Lo 09
Discrete Event Simulation in Healthcare
Discrete event-simulation
Chapter3 general principles of discrete event simulation

Viewers also liked (8)

PPT
Understand the behavior of organization in their market environment
PPTX
Nanotechnology and CHIP Fabrication
PPTX
Intel & ARM: Strategic Comparison
PDF
10 stratejik analiz
PPT
Competitive Intelligence 0070 Market Intel Fina Lb
PPTX
Industrial marketing Strategies-Intel Case Study
PPT
Intel Presentation
PPTX
Intel
Understand the behavior of organization in their market environment
Nanotechnology and CHIP Fabrication
Intel & ARM: Strategic Comparison
10 stratejik analiz
Competitive Intelligence 0070 Market Intel Fina Lb
Industrial marketing Strategies-Intel Case Study
Intel Presentation
Intel
Ad

Similar to 04 intel v_tune_session_05 (20)

PPS
04 intel v_tune_session_05
PPSX
Sql server lesson12
PPTX
Sql server lesson12
PPTX
Dot Net performance monitoring
PDF
Getting started with_testcomplete
PPSX
07 intel v_tune_session_10
PDF
Test automation
PDF
Intro to ETW Tracing and OSVR
PPT
Automated Regression Testing for Embedded Systems in Action
DOC
Qtp interview questions and answers
DOC
Qtp interview questions and answers
DOC
LoadTracer
PDF
Online airline reservation system project report.pdf
PDF
End to-end root cause analysis minimize the time to incident resolution
PDF
Methodology and manufacturing process.pdf
PPT
Performance testing with loadrunner by kc
PPTX
Use case point ( Software Estimation Technique)
PPTX
Silk Performer Presentation v1
PPT
Chapter11 Monitoring Server Performance
PPSX
09 intel v_tune_session_13
04 intel v_tune_session_05
Sql server lesson12
Sql server lesson12
Dot Net performance monitoring
Getting started with_testcomplete
07 intel v_tune_session_10
Test automation
Intro to ETW Tracing and OSVR
Automated Regression Testing for Embedded Systems in Action
Qtp interview questions and answers
Qtp interview questions and answers
LoadTracer
Online airline reservation system project report.pdf
End to-end root cause analysis minimize the time to incident resolution
Methodology and manufacturing process.pdf
Performance testing with loadrunner by kc
Use case point ( Software Estimation Technique)
Silk Performer Presentation v1
Chapter11 Monitoring Server Performance
09 intel v_tune_session_13
Ad

More from Vivek Singh Chandel (20)

PDF
Deceptive Marketing.pdf
PDF
brain controled wheel chair.pdf
PDF
Mechanism of fullerene synthesis in the ARC REACTOR (Vivek Chan 2013)
PDF
Manav dharma shashtra tatha shashan paddati munshiram jigyasu
PDF
Self driving and connected cars fooling sensors and tracking drivers
PDF
EEG Acquisition Device to Control Wheelchair Using Thoughts
PDF
Full Shri Ramcharitmanas in Hindi Complete With Meaning (Ramayana)
PPSX
Net framework session01
PPSX
Net framework session03
PPSX
Net framework session02
PPSX
03 intel v_tune_session_04
PPSX
02 intel v_tune_session_02
PPSX
01 intel v_tune_session_01
PPSX
02 asp.net session02
PPSX
01 asp.net session01
PPSX
16 asp.net session23
PPSX
15 asp.net session22
PPSX
14 asp.net session20
PPSX
13 asp.net session19
PPSX
12 asp.net session17
Deceptive Marketing.pdf
brain controled wheel chair.pdf
Mechanism of fullerene synthesis in the ARC REACTOR (Vivek Chan 2013)
Manav dharma shashtra tatha shashan paddati munshiram jigyasu
Self driving and connected cars fooling sensors and tracking drivers
EEG Acquisition Device to Control Wheelchair Using Thoughts
Full Shri Ramcharitmanas in Hindi Complete With Meaning (Ramayana)
Net framework session01
Net framework session03
Net framework session02
03 intel v_tune_session_04
02 intel v_tune_session_02
01 intel v_tune_session_01
02 asp.net session02
01 asp.net session01
16 asp.net session23
15 asp.net session22
14 asp.net session20
13 asp.net session19
12 asp.net session17

Recently uploaded (20)

PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PPTX
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
PDF
01-Introduction-to-Information-Management.pdf
PPTX
Institutional Correction lecture only . . .
PDF
VCE English Exam - Section C Student Revision Booklet
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
TR - Agricultural Crops Production NC III.pdf
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PPTX
master seminar digital applications in india
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PDF
Basic Mud Logging Guide for educational purpose
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PDF
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
PDF
RMMM.pdf make it easy to upload and study
PDF
Insiders guide to clinical Medicine.pdf
PPTX
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
STATICS OF THE RIGID BODIES Hibbelers.pdf
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
01-Introduction-to-Information-Management.pdf
Institutional Correction lecture only . . .
VCE English Exam - Section C Student Revision Booklet
human mycosis Human fungal infections are called human mycosis..pptx
FourierSeries-QuestionsWithAnswers(Part-A).pdf
TR - Agricultural Crops Production NC III.pdf
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
master seminar digital applications in india
Supply Chain Operations Speaking Notes -ICLT Program
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Renaissance Architecture: A Journey from Faith to Humanism
Basic Mud Logging Guide for educational purpose
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
RMMM.pdf make it easy to upload and study
Insiders guide to clinical Medicine.pdf
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
102 student loan defaulters named and shamed – Is someone you know on the list?

04 intel v_tune_session_05

  • 1. During this session you will learn to: Identify the features of VTune Performance Analyzer Identify hotspots and bottlenecks in an application using sampling Objectives
  • 2. VTune Performance is a powerful and easy-to-use software- analysis tool. It collects, analyses, and displays performance data for a wide variety of applications. It can be used to identify and locate the code snippets in your application that show the highest amount of activity over a specific period. It also displays how an application interacts with the OS or other software, such as drivers. Exploring VTune Performance Analyzer
  • 3. Various features of VTune Performance Analyzer are as follows: Sampling Call graph Counter monitor Tuning assistant Hotspots view Features of VTune Performance Analyzer Calculates the actual performance of the system over a period and for various processor events ► Provides a graphical view of the flow of an application and helps you identify critical functions and timing details in the application ► Provides system-level performance information, such as resource consumption, during the execution of an application ► Provides tuning advice from an analysis of the performance data. The tuning advice helps you improve performance of an application ► Helps identify the area of code that takes the maximum CPU time ►
  • 4. VTune Performance Analyzer provides flexible user interfaces. Using these interfaces, you can manage and organize various windows and analyze views, according to your requirements. Working With VTune User Interface
  • 5. Working With VTune User Interface (Contd.) Tuning browser: The Tuning Browser window displays a list of the contents of a project. This window enables you to view the result of activities. The Tuning Browser window also enables you to use all the activities related to the project. Output window: The Output window displays messages during data collection and analysis. Data view: Data views display analysis data in various formats. Menus and toolbars: Menus and toolbars provide easy access to the common commands of the VTune Performance Analyzer. Using these commands, you can access the information that the VTune Performance Analyzer provides.
  • 6. Which data view displays all the threads that run within a selected process? Which data view enables you to pinpoint problem areas in the code? Just a minute Answer: Thread view Source view
  • 7. Identifying Wizards in VTune The different wizards available in VTune Performance Analyzer are displayed in the following table. Name Description Quick Performance Analysis (QPA) wizard It enables you to quickly analyze your application's performance. This wizard enables you to create an activity with any combination of sampling, counter monitor, and call graph collectors. Complete setup wizard It enables you to create an activity and configure multiple collectors at the same time. The wizard prompts you to enter values only for the basic parameters and uses default values for others. Counter monitor wizard It enables you to create an activity and configure the counter monitor data collector. The wizard prompts you to enter values only for the basic parameters, and uses default values for others.
  • 8. Identifying Wizards in VTune (Contd.) Name Description Sampling wizard It enables you to create an activity and configure the sampling collector to profile any type of application. The wizard prompts you to enter values for the basic parameters and uses default values for others. Call graph wizard It enables you to create an activity and configure the call graph data collector to profile any type of application. The wizard prompts you to enter values for the basic parameters and uses default values for others. Advanced Activity Configuration wizard It enables you to control all the steps of activity creation and configuration. You can add multiple data collectors and configure them. You can also add application/module profiles to an activity and associate them with any of the data collectors. Use the Advanced Activity Configuration option offers more flexibility in activity creation. The different wizards available in VTune Performance Analyzer are displayed in the following table.
  • 9. Using Sampling Sampling is the process of collecting a set of data for analysis and representing the analyzed data in statistical format. Sampling enables you to: Identify hotspots Identify bottlenecks Hotspot is the section of code that takes a long time to execute. It consumes a large amount of processor time. ► Bottleneck is the area of code that slows down the execution of the application. All bottlenecks are hotspots but all hotspots are not bottlenecks. ►
  • 10. When you perform an activity by using time-based sampling, the VTune Performance Analyzer: Executes the application you have launched Stops the processor at the sampling interval and collects samples of the specified application Stores sampling data in the buffer. When the buffer is full, it stops sampling. The VTune Performance Analyzer then writes the sampling data to the disk and resumes sampling Continues to collect sampling data until the specified application terminates or the specified sampling duration ends Analyzes the collected data, creates an activity result in the Tuning Browser window, and displays the total data collected for each module Using Sampling (Contd.)
  • 11. Event Based Sampling (EBS) is performed on the processor events. EBS enables you to determine which process, thread, module, function, or code line in the application is generating the largest number of processor events. Using Sampling (Contd.)
  • 12. Sampling over time view shows the threads running during data collection. It displays the samples collected with respect to time for a single event. Using Sampling (Contd.)
  • 13. You can use the Over Time view to gather the following information: Context switching: Enables you to determine if there is excessive context switching Processor utilization: Enables you to identify which processors are idle at what times Temporal location of hotspots: Enables you to view the specific periods of time when a large number of events occurred Thread interaction: Enables you to view the number of threads in an application but not how they interact with each other Using Sampling (Contd.)
  • 14. Which wizard in sampling allows you to create an Activity and configure the sampling collector to profile any type of application? Just a minute Answer: Sampling wizard
  • 15. Problem Statement: John has created an application in Java which involves the use of a two-dimensional matrix. However, he finds that his application takes a long time to execute. Therefore, John decides to analyze the performance of the application using the event-based sampling (EBS) feature of VTune Performance Analyzer. Help John accomplish this task. Activity: Performing Event-Based Sampling – 1
  • 16. Solution To analyze the performance of the application using EBS, you need to perform the following tasks: 1. Configure EBS using the Sampling wizard. 2. Analyze sampling results. Activity: Performing Event-Based Sampling – 1 (Contd.)
  • 17. In this chapter, you learnt that: Intel VTune Performance Analyzer is a powerful and easy-to-use software-analysis tool. VTune Performance Analyzer helps you identify and locate the area of code in an application that shows the highest amount of activity over a specific period. VTune Performance Analyzer displays how an application interacts with the OS or other software. VTune Performance Analyzer provides a number of features, which make it an efficient performance analysis tool. The features are: Sampling Call graph Counter monitor Tuning assistant Hotspots view Summary
  • 18. VTune Performance Analyzer provides flexible user interfaces to manage and organize different windows. Sampling is a process of collecting and testing a set of data for relevant information and presenting the analyzed data in statistical format. Sampling helps you: Identify hotspots Identify bottlenecks VTune Performance Analyzer provides two types of sampling mechanisms to collect data. They are: Time-based sampling (TBS): In TBS, the VTune Performance Analyzer collects samples of an activity at regular intervals of time. Event-based sampling (EBS): In EBS, the VTune Performance Analyzer collects samples of an activity at regular intervals of processor event. Summary (Contd.)