Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Intel VTune

8,388 views

Published on

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.

Published in: Technology, Business
  • Be the first to comment

Intel VTune

  1. 1. Intel VTune Performance AnalyzerSemester – C By - Vikram Singh SainiYear – 2009
  2. 2. Intel VTune –– Performance AnalyzerIntel VTune Performance AnalyzerINTRODUCTION 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. 3. Intel VTune –– Performance AnalyzerIntel VTune Performance AnalyzerSAMPLING 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. 4. Intel VTune –– Performance AnalyzerIntel VTune Performance AnalyzerSAMPLING (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. 5. Intel VTune –– Performance AnalyzerIntel VTune Performance AnalyzerSAMPLING (Contd…) EVENT – BASED SAMPLING Code Optimization and Performance Tuning Using Intel VTune5
  6. 6. Intel VTune –– Performance AnalyzerIntel VTune Performance AnalyzerSAMPLING (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. 7. Intel VTune –– Performance AnalyzerIntel VTune Performance AnalyzerSAMPLING (Contd…) SAMPLING OVER TIME Code Optimization and Performance Tuning Using Intel VTune7
  8. 8. Intel VTune –– Performance AnalyzerIntel VTune Performance AnalyzerSAMPLING (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 Hotspots8
  9. 9. Intel VTune –– Performance AnalyzerIntel VTune Performance AnalyzerCALL 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. 10. Intel VTune –– Performance AnalyzerIntel VTune Performance AnalyzerCALL GRAPHS (Cont…) GRAPH VIEW Code Optimization and Performance Tuning Using Intel VTune10
  11. 11. Intel VTune –– Performance AnalyzerIntel VTune Performance AnalyzerCALL GRAPHS (Contd…) CALL LIST VIEW Code Optimization and Performance Tuning Using Intel VTune11
  12. 12. Intel VTune –– Performance AnalyzerIntel VTune Performance AnalyzerCALL GRAPHS (Contd…) FUNCTION SUMMARY VIEW Code Optimization and Performance Tuning Using Intel VTune12
  13. 13. Intel VTune –– Performance AnalyzerIntel VTune Performance AnalyzerCOUNTER 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 view13
  14. 14. Intel VTune –– Performance AnalyzerIntel VTune Performance AnalyzerCOUNTER MONITOR (Contd…) LOGGED DATA VIEW Code Optimization and Performance Tuning Using Intel VTune14
  15. 15. Intel VTune –– Performance AnalyzerIntel VTune Performance AnalyzerCOUNTER MONITOR (Contd…) LEGEND VIEW Code Optimization and Performance Tuning Using Intel VTune15
  16. 16. Intel VTune –– Performance AnalyzerIntel VTune Performance AnalyzerCOUNTER MONITOR (Contd…) SUMMARY VIEW Code Optimization and Performance Tuning Using Intel VTune16
  17. 17. Intel VTune –– Performance AnalyzerIntel VTune Performance AnalyzerTuning 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 computation17
  18. 18. Intel VTune –– Performance AnalyzerIntel VTune Performance AnalyzerTuning Assistant (Contd…) Code Optimization and Performance Tuning Using Intel VTune18
  19. 19. Intel VTune –– Performance AnalyzerIntel VTune Performance AnalyzerTuning 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. 20. Intel VTune –– Performance AnalyzerIntel VTune Performance AnalyzerTuning Assistant (Contd…) Categories of Insights - @ Top insights @ Hotspots insights @ Workload insights @ System Info @ Module insights @ Static Analysis Code Optimization and Performance Tuning Using Intel VTune20
  21. 21. Intel VTune –– Performance AnalyzerIntel VTune Performance AnalyzerReferences 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. 22. Intel VTune –– Performance AnalyzerIntel VTune Performance AnalyzerYour queries please Thanks ! Code Optimization and Performance Tuning Using Intel VTune Queries are welcome ???22

×