The VTune analyzer provides an integrated performance analysis and tuning environment that helps you analyze your code's performance on systems with IA-32, Intel(R) 64, and IA-64 architecture.
08448380779 Call Girls In Friends Colony Women Seeking Men
Intel VTune
1. Intel VTune
Performance Analyzer
Semester – C By - Vikram Singh Saini
Year – 2009
2. Intel VTune –– Performance Analyzer
Intel VTune Performance Analyzer
INTRODUCTION
Intel VTune is a software analysis tool that enables you
to analyze the performance of your application.
Use Sampling to gain accurate representation of your
software’s actual performance.
Code Optimization and Performance
Tuning Using Intel VTune
Produce picture of program flow to identify critical
functions & call sequences using Call Graph profiling.
Track system activity and resource consumption during
runtime with Counter Monitor.
Tune code more efficiently using Tuning Assistant.
2
3. Intel VTune –– Performance Analyzer
Intel VTune Performance Analyzer
SAMPLING
Sampling is the process of collecting set of data for
analysis & representing analyzed data in statistical format.
Sampling helps you to identify:-
1. Hotspots – Section of code within module that takes
Code Optimization and Performance
long time to execute.
2. Bottlenecks Using Intel VTune that slows down the
Tuning – Area in the code
execution of the application.
Two types of sampling mechanism:
1. Time-Based sampling.
2. Event –Based sampling.
3
4. Intel VTune –– Performance Analyzer
Intel VTune Performance Analyzer
SAMPLING (Contd…)
TIME – BASED SAMPLING
Collects samples of activity at regular intervals.
Time based sampling uses the OS timer to calculate
Code Optimization and Performance
the time Tuning Using Intel VTune
interval for collecting samples.
Collected samples displays the performance data of all
the processes running on computer.
The process that takes the longest time to execute
contains the largest number of samples.
4
5. Intel VTune –– Performance Analyzer
Intel VTune Performance Analyzer
SAMPLING (Contd…)
EVENT – BASED SAMPLING
Code Optimization and Performance
Tuning Using Intel VTune
5
6. Intel VTune –– Performance Analyzer
Intel VTune Performance Analyzer
SAMPLING (Contd…)
EVENT – BASED SAMPLING
Event based sampling is performed on basis of
processor events.
Code Optimization and Performance
By using EBS, Using Intel VTune which
Tuning one can determine
process,thread,module,function or code line in the
application is generating the largest number of processor
events .
Using EBS you can view the corresponding events
which are taking part while application is executing.
6
7. Intel VTune –– Performance Analyzer
Intel VTune Performance Analyzer
SAMPLING (Contd…)
SAMPLING OVER TIME
Code Optimization and Performance
Tuning Using Intel VTune
7
8. Intel VTune –– Performance Analyzer
Intel VTune Performance Analyzer
SAMPLING (Contd…)
SAMPLING OVER TIME
Sampling OverTime view displays the samples
collected with respect to time for a single event.
Code Optimization and Performance
Enables you to identify which threads are running
Tuning Using Intel VTune
serially & in parallel at any point in time.
Can gather following information:-
@ Context switching
@ Processor utilization
@ Thread interaction
@ Temporal location of Hotspots
8
9. Intel VTune –– Performance Analyzer
Intel VTune Performance Analyzer
CALL GRAPHS
It helps you to obtain information about the functional
flow of an application.
One can identify the critical path of the application or
module.
Code Optimization and Performance
Tuning Using Intel VTune
Identify function which took long time and can be
optimized.
Intel Vtune displays the results of the call graph in
three views:
I. Graph view.
II. Call list view.
III. Function summary view.
9
11. Intel VTune –– Performance Analyzer
Intel VTune Performance Analyzer
CALL GRAPHS (Contd…)
CALL LIST VIEW
Code Optimization and Performance
Tuning Using Intel VTune
11
12. Intel VTune –– Performance Analyzer
Intel VTune Performance Analyzer
CALL GRAPHS (Contd…)
FUNCTION SUMMARY VIEW
Code Optimization and Performance
Tuning Using Intel VTune
12
13. Intel VTune –– Performance Analyzer
Intel VTune Performance Analyzer
COUNTER MONITOR
Counter Monitor identifies system level issues in
application when the application runs on the system.
It is used to track system activity and resource
consumption during runtime.
Code Optimization and Performance
Tuning Using Intel VTune
Measures and gathers performance -related data that
represents the state of the system.
Three views of analyzing the result:-
# Runtime data view
# Logged data view
# Summary data view
13
14. Intel VTune –– Performance Analyzer
Intel VTune Performance Analyzer
COUNTER MONITOR (Contd…)
LOGGED DATA VIEW
Code Optimization and Performance
Tuning Using Intel VTune
14
17. Intel VTune –– Performance Analyzer
Intel VTune Performance Analyzer
Tuning Assistant
Observe the performance issues of your application
and provides advice in the form of a tuning advice report.
Application can be tuned at three levels:
@ System-Level
Code Optimization and Performance
@ Application-Level
Tuning Using Intel VTune
@ Microarchitecture - Level
Three strategies to improve performance of app.:
- Balancing I/O computation
- Improving threading model
- Improving efficiency of computation
17