SlideShare a Scribd company logo
Intel VTune
    Performance Analyzer


Semester – C           By - Vikram Singh Saini
Year – 2009
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
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
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
Intel VTune –– Performance Analyzer
Intel VTune Performance Analyzer
SAMPLING (Contd…)

      EVENT – BASED SAMPLING




            Code Optimization and Performance
            Tuning Using Intel VTune




5
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
Intel VTune –– Performance Analyzer
Intel VTune Performance Analyzer
SAMPLING (Contd…)


      SAMPLING OVER TIME




            Code Optimization and Performance
            Tuning Using Intel VTune




7
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
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
Intel VTune –– Performance Analyzer
Intel VTune Performance Analyzer
CALL GRAPHS (Cont…)


      GRAPH VIEW




             Code Optimization and Performance
             Tuning Using Intel VTune




10
Intel VTune –– Performance Analyzer
Intel VTune Performance Analyzer
CALL GRAPHS (Contd…)


      CALL LIST VIEW




             Code Optimization and Performance
             Tuning Using Intel VTune




11
Intel VTune –– Performance Analyzer
Intel VTune Performance Analyzer
CALL GRAPHS (Contd…)


      FUNCTION SUMMARY VIEW




             Code Optimization and Performance
             Tuning Using Intel VTune




12
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
Intel VTune –– Performance Analyzer
Intel VTune Performance Analyzer
COUNTER MONITOR (Contd…)


      LOGGED DATA VIEW




            Code Optimization and Performance
            Tuning Using Intel VTune




14
Intel VTune –– Performance Analyzer
Intel VTune Performance Analyzer
COUNTER MONITOR (Contd…)


      LEGEND VIEW




            Code Optimization and Performance
            Tuning Using Intel VTune




15
Intel VTune –– Performance Analyzer
Intel VTune Performance Analyzer
COUNTER MONITOR (Contd…)


      SUMMARY VIEW




            Code Optimization and Performance
            Tuning Using Intel VTune




16
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
Intel VTune –– Performance Analyzer
Intel VTune Performance Analyzer
Tuning Assistant (Contd…)




              Code Optimization and Performance
              Tuning Using Intel VTune




18
Intel VTune –– Performance Analyzer
Intel VTune Performance Analyzer
Tuning Assistant (Contd…)

          Types of Advices-
         # Sampling-based advice
         # Counter monitor-based advice
         # Source-based advice
         # Static assembly penalties
                 Code Optimization and Performance
          Static Tuning Using Intel VTune
                 assembly penalties -
          - Penalty
          - Warning

         Insight - Is a performance issue that can act as
       bottleneck to the performance of an application.


19
Intel VTune –– Performance Analyzer
Intel VTune Performance Analyzer
Tuning Assistant (Contd…)

        Categories of Insights -
         @ Top insights            @ Hotspots insights
         @ Workload insights       @ System Info
         @ Module insights         @ Static Analysis

                Code Optimization and Performance
                Tuning Using Intel VTune




20
Intel VTune –– Performance Analyzer
Intel VTune Performance Analyzer
References

         Help file – Intel VTune.chm

         www.intel.com

         www.hiperism.com
              Code Optimization and Performance
         Book Tuning UsingPerformance Analyzer Essentials
              - Intel VTune Intel VTune
       (Author: James Reinders)

         Book - NIIT 3rd Semester Intel VTune

         Background of slides is inspired from NIIT slides.


21
Intel VTune –– Performance Analyzer
Intel VTune Performance Analyzer
Your queries please




                  Thanks !
               Code Optimization and Performance
               Tuning Using Intel VTune




            Queries are welcome ???
22

More Related Content

PPT
C#.NET
PDF
Introduction to python
PDF
LAS16 111 - Raspberry pi3, op-tee and jtag debugging
PDF
Linux Systems: Getting started with setting up an Embedded platform
PPTX
Linux Kernel Module - For NLKB
PDF
Introduction to FreeRTOS
 
C#.NET
Introduction to python
LAS16 111 - Raspberry pi3, op-tee and jtag debugging
Linux Systems: Getting started with setting up an Embedded platform
Linux Kernel Module - For NLKB
Introduction to FreeRTOS
 

What's hot (20)

PDF
C standard library functions
PPT
02 order of growth
PDF
Kernel Module Programming
PPTX
C data types, arrays and structs
PPTX
Introduction of c programming
PPTX
Pentium processor
PDF
Linux Internals - Interview essentials 4.0
PPTX
Library functions in c++
PDF
Semaphores
PPT
Parallel processing
PPT
Advanced c programming in Linux
PDF
RISC-V & SoC Architectural Exploration for AI and ML Accelerators
PDF
Linux scheduler
PPTX
Loops c++
PPTX
User and operating system interface.pptx
PDF
Hacking a Xiami Mi Vacuum Robot
DOCX
Embedded system notes
PPTX
Recursion in c++
C standard library functions
02 order of growth
Kernel Module Programming
C data types, arrays and structs
Introduction of c programming
Pentium processor
Linux Internals - Interview essentials 4.0
Library functions in c++
Semaphores
Parallel processing
Advanced c programming in Linux
RISC-V & SoC Architectural Exploration for AI and ML Accelerators
Linux scheduler
Loops c++
User and operating system interface.pptx
Hacking a Xiami Mi Vacuum Robot
Embedded system notes
Recursion in c++
Ad

Viewers also liked (13)

PDF
Intel® VTune™ Amplifier - Intel Software Conference 2013
PDF
2 Vampir Trace Visualization
PPSX
01 intel v_tune_session_01
PPT
แสตก
PPT
PID Control Of Sampled Measurements - Greg McMillan Deminar Series
PPTX
SS - 10 min overview
PPT
Dream Analyzer Tool
PPT
Differences Between Bw3.5 Bi7.0
PPT
Oxygen analyzers bb fa11 update
PDF
SRE From Scratch
PPS
Oxygen Analyzer
PPTX
Automation
PPTX
Types of Industrial Process Analyzers
Intel® VTune™ Amplifier - Intel Software Conference 2013
2 Vampir Trace Visualization
01 intel v_tune_session_01
แสตก
PID Control Of Sampled Measurements - Greg McMillan Deminar Series
SS - 10 min overview
Dream Analyzer Tool
Differences Between Bw3.5 Bi7.0
Oxygen analyzers bb fa11 update
SRE From Scratch
Oxygen Analyzer
Automation
Types of Industrial Process Analyzers
Ad

Similar to Intel VTune (20)

PPSX
07 intel v_tune_session_10
PPS
06 intel v_tune_session_08
PPS
04 intel v_tune_session_05
PPTX
Performance and Power Profiling on Intel Android Devices
PPS
08 intel v_tune_session_11
PPS
05 intel v_tune_session_07
PPS
10 intel v_tune_session_14
PPS
07 intel v_tune_session_10
PPSX
04 intel v_tune_session_05
PPSX
09 intel v_tune_session_13
PDF
Software Development Tools for Intel® IoT Platforms
PDF
Develop, Deploy, and Innovate with Intel® Cluster Ready
PDF
Intel® Xeon® processor E7-8800/4800 v3 Application Showcase
PPTX
E5 Intel Xeon Processor E5 Family Making the Business Case
PPS
11 intel v_tune_session_16
PDF
Getting the maximum performance in distributed clusters Intel Cluster Studio XE
PPTX
Intel system studio presentation on ommunication.pptx
PDF
Технологии Intel для виртуализации сетей операторов связи
PPTX
Design and Optimize your code for high-performance with Intel® Advisor and I...
PDF
IRJET - IoT-based Monitoring of Induction Motor Performance
07 intel v_tune_session_10
06 intel v_tune_session_08
04 intel v_tune_session_05
Performance and Power Profiling on Intel Android Devices
08 intel v_tune_session_11
05 intel v_tune_session_07
10 intel v_tune_session_14
07 intel v_tune_session_10
04 intel v_tune_session_05
09 intel v_tune_session_13
Software Development Tools for Intel® IoT Platforms
Develop, Deploy, and Innovate with Intel® Cluster Ready
Intel® Xeon® processor E7-8800/4800 v3 Application Showcase
E5 Intel Xeon Processor E5 Family Making the Business Case
11 intel v_tune_session_16
Getting the maximum performance in distributed clusters Intel Cluster Studio XE
Intel system studio presentation on ommunication.pptx
Технологии Intel для виртуализации сетей операторов связи
Design and Optimize your code for high-performance with Intel® Advisor and I...
IRJET - IoT-based Monitoring of Induction Motor Performance

Recently uploaded (20)

PDF
August Patch Tuesday
PDF
Zenith AI: Advanced Artificial Intelligence
PDF
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
A novel scalable deep ensemble learning framework for big data classification...
PDF
Web App vs Mobile App What Should You Build First.pdf
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
Encapsulation theory and applications.pdf
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Univ-Connecticut-ChatGPT-Presentaion.pdf
PDF
WOOl fibre morphology and structure.pdf for textiles
PDF
Heart disease approach using modified random forest and particle swarm optimi...
PDF
1 - Historical Antecedents, Social Consideration.pdf
PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
PPTX
cloud_computing_Infrastucture_as_cloud_p
PPTX
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
PDF
Approach and Philosophy of On baking technology
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
August Patch Tuesday
Zenith AI: Advanced Artificial Intelligence
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
Encapsulation_ Review paper, used for researhc scholars
A novel scalable deep ensemble learning framework for big data classification...
Web App vs Mobile App What Should You Build First.pdf
Assigned Numbers - 2025 - Bluetooth® Document
Encapsulation theory and applications.pdf
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Univ-Connecticut-ChatGPT-Presentaion.pdf
WOOl fibre morphology and structure.pdf for textiles
Heart disease approach using modified random forest and particle swarm optimi...
1 - Historical Antecedents, Social Consideration.pdf
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
cloud_computing_Infrastucture_as_cloud_p
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
Approach and Philosophy of On baking technology
Unlocking AI with Model Context Protocol (MCP)
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
Profit Center Accounting in SAP S/4HANA, S4F28 Col11

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
  • 10. Intel VTune –– Performance Analyzer Intel VTune Performance Analyzer CALL GRAPHS (Cont…) GRAPH VIEW Code Optimization and Performance Tuning Using Intel VTune 10
  • 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
  • 15. Intel VTune –– Performance Analyzer Intel VTune Performance Analyzer COUNTER MONITOR (Contd…) LEGEND VIEW Code Optimization and Performance Tuning Using Intel VTune 15
  • 16. Intel VTune –– Performance Analyzer Intel VTune Performance Analyzer COUNTER MONITOR (Contd…) SUMMARY VIEW Code Optimization and Performance Tuning Using Intel VTune 16
  • 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
  • 18. Intel VTune –– Performance Analyzer Intel VTune Performance Analyzer Tuning Assistant (Contd…) Code Optimization and Performance Tuning Using Intel VTune 18
  • 19. Intel VTune –– Performance Analyzer Intel VTune Performance Analyzer Tuning Assistant (Contd…) Types of Advices- # Sampling-based advice # Counter monitor-based advice # Source-based advice # Static assembly penalties Code Optimization and Performance Static Tuning Using Intel VTune assembly penalties - - Penalty - Warning Insight - Is a performance issue that can act as bottleneck to the performance of an application. 19
  • 20. Intel VTune –– Performance Analyzer Intel VTune Performance Analyzer Tuning Assistant (Contd…) Categories of Insights - @ Top insights @ Hotspots insights @ Workload insights @ System Info @ Module insights @ Static Analysis Code Optimization and Performance Tuning Using Intel VTune 20
  • 21. Intel VTune –– Performance Analyzer Intel VTune Performance Analyzer References Help file – Intel VTune.chm www.intel.com www.hiperism.com Code Optimization and Performance Book Tuning UsingPerformance Analyzer Essentials - Intel VTune Intel VTune (Author: James Reinders) Book - NIIT 3rd Semester Intel VTune Background of slides is inspired from NIIT slides. 21
  • 22. Intel VTune –– Performance Analyzer Intel VTune Performance Analyzer Your queries please Thanks ! Code Optimization and Performance Tuning Using Intel VTune Queries are welcome ??? 22

Editor's Notes

  • #11: Graph view Iis for purpose of the anyhthing.
  • #22: http://www.hiperism.com/Intel/VTune_Analyzers/Reseller_ProductPage_VTune_Perf_Analyzer_005.htm