SlideShare a Scribd company logo
1 of 11
Code Optimization and Performance Tuning Using Intel VTune
Installing Windows XP Professional Using Attended Installation

Objectives


                •   In this session, you will learn to:
                       Identify system-level performance issues by using counter
                       monitor




     Ver. 1.0                                                                Slide 1 of 11
Code Optimization and Performance Tuning Using Intel VTune
Installing Windows XP Professional Using Attended Installation

Activity: Using Call Graph – 2


                Problem Statement:
                   John has developed a code in Java, which involves the use of
                   two-dimensional matrices. However, on execution, the
                   application performs very slowly. Therefore, John decides to
                   view the functional flow of the application and find the details of
                   the functions that have large self time. Therefore, John decides
                   to analyze the performance of the application using call graph
                   of VTune Performance Analyzer. Help John accomplish his
                   task.




     Ver. 1.0                                                                Slide 2 of 11
Code Optimization and Performance Tuning Using Intel VTune
Installing Windows XP Professional Using Attended Installation

Activity: Using Call Graph – 2 (Contd.)


                Solution
                   To analyze the performance of the application using call graph,
                   you need to perform the following tasks:
                    1. Configure call graphs using the Call Graph Configuration wizard.
                    2. Analyze the functional flow of the application.
                    3. Analyze the time taken by each function to execute.




     Ver. 1.0                                                                   Slide 3 of 11
Code Optimization and Performance Tuning Using Intel VTune
Installing Windows XP Professional Using Attended Installation

Using Counter Monitor


                Counter monitor:
                   Enables you to identify system-level issues in an application.
                   Monitors and graphically displays performance counter data.
                   Helps you understand the cause-and-effect relationship
                   between an application and the system on which the
                   application is running.




     Ver. 1.0                                                              Slide 4 of 11
Code Optimization and Performance Tuning Using Intel VTune
Installing Windows XP Professional Using Attended Installation

Activity: Collecting Performance Counter Data – 1


                Problem Statement:
                   Jim has developed a code to generate a list of random
                   numbers. Once the numbers are generated, the user can also
                   implement a delete operation on the list. However, on
                   executing the application, he finds that the application is
                   performing slowly. Jim has analyzed the performance of the
                   application using sampling and call graph data collector of
                   VTune Performance Analyzer. Now Jim decides to use counter
                   monitor of VTune Performance Analyzer to analyze the
                   cause-and-effect relationship between an application and the
                   system on which the application is running. Therefore, Jim
                   decides to analyze the performance of the application using the
                   counter monitor feature of VTune Performance Analyzer. Help
                   Jim to analyze the performance of the application using VTune
                   Performance Analyzer?



     Ver. 1.0                                                             Slide 5 of 11
Code Optimization and Performance Tuning Using Intel VTune
Installing Windows XP Professional Using Attended Installation

Activity: Collecting Performance Counter Data – 1 (Contd.)


                Solution
                   To analyze the performance of the application using counter
                   monitor, you need to perform the following tasks:
                    1. Configure counter monitor using the Counter Monitor
                       Configuration wizard.
                    2. Analyze the results of counter monitor.




     Ver. 1.0                                                                Slide 6 of 11
Code Optimization and Performance Tuning Using Intel VTune
Installing Windows XP Professional Using Attended Installation

Activity: Collecting Performance Counter Data – 1 (Contd.)


                Solution
                   After collecting data, VTune Performance Analyzer displays the
                   collected counter data in the following three views:
                    • Runtime Data View: Displays the chart of the performance
                      counters selected at run time as the activity progresses and
                      counter data is collected.
                    • Logged Data View: Displays the performance counter data
                      selected for logging in the Logged Data view, after the activity
                      ends.
                    • Summary Data View: Displays a statistical view of the counter
                      data.




     Ver. 1.0                                                                   Slide 7 of 11
Code Optimization and Performance Tuning Using Intel VTune
Installing Windows XP Professional Using Attended Installation

Activity: Collecting Performance Counter Data – 2


                Problem Statement:
                   Jim has developed an application in Java that involves the use
                   of arrays. He decides to analyze the performance of his
                   application using the counter monitor feature of VTune. He
                   wants to view the processor utilization and the amount of
                   context switching involved in his application. After analyzing
                   the performance of his application, he wishes to optimize his
                   application accordingly. Help Jim to analyze the performance
                   of his application.




     Ver. 1.0                                                            Slide 8 of 11
Code Optimization and Performance Tuning Using Intel VTune
Installing Windows XP Professional Using Attended Installation

Activity: Collecting Performance Counter Data – 2 (Contd.)


                Solution
                   To analyze the performance of the application using counter
                   monitor, Jim needs to perform the following tasks:
                    1. Configure counter monitor.
                    2. Analyze the results of counter monitor.




     Ver. 1.0                                                            Slide 9 of 11
Code Optimization and Performance Tuning Using Intel VTune
Installing Windows XP Professional Using Attended Installation

Activity: Collecting Performance Counter Data – 2 (Contd.)


                Solution
                   You cannot directly configure counter monitor wizard for java
                   application.
                   To collect counter monitor data for java application, you can
                   first create an activity using the sampling wizard and then
                   modify the activity by adding counter monitor from the available
                   data collectors list.




     Ver. 1.0                                                             Slide 10 of 11
Code Optimization and Performance Tuning Using Intel VTune
Installing Windows XP Professional Using Attended Installation

Summary


                In this session, you learnt that:
                   The counter monitor collector monitors and graphically displays
                   performance counter data.
                   The performance counter is a feature that measures and
                   gathers the performance-related data that represents the state
                   of a system.




     Ver. 1.0                                                            Slide 11 of 11

More Related Content

Similar to 06 intel v_tune_session_08

10 intel v_tune_session_14
10 intel  v_tune_session_1410 intel  v_tune_session_14
10 intel v_tune_session_14Niit Care
 
07 intel v_tune_session_10
07 intel v_tune_session_1007 intel v_tune_session_10
07 intel v_tune_session_10Vivek chan
 
09 intel v_tune_session_13
09 intel v_tune_session_1309 intel v_tune_session_13
09 intel v_tune_session_13Vivek chan
 
01 intel v_tune_session_01
01 intel v_tune_session_0101 intel v_tune_session_01
01 intel v_tune_session_01Niit Care
 
04 intel v_tune_session_05
04 intel v_tune_session_0504 intel v_tune_session_05
04 intel v_tune_session_05Vivek chan
 
14 ooad uml-19
14 ooad uml-1914 ooad uml-19
14 ooad uml-19Niit Care
 
01 intel v_tune_session_01
01 intel v_tune_session_0101 intel v_tune_session_01
01 intel v_tune_session_01Vivek chan
 
09 intel v_tune_session_13
09 intel v_tune_session_1309 intel v_tune_session_13
09 intel v_tune_session_13Niit Care
 
Design the implementation of CDEx Robust DC Motor.
Design the implementation of CDEx Robust DC Motor.Design the implementation of CDEx Robust DC Motor.
Design the implementation of CDEx Robust DC Motor.Ankita Tiwari
 
IBM MobileFirst Platform v7.0 POT Analytics v1.1
IBM MobileFirst Platform v7.0 POT Analytics v1.1IBM MobileFirst Platform v7.0 POT Analytics v1.1
IBM MobileFirst Platform v7.0 POT Analytics v1.1Banking at Ho Chi Minh city
 
02 intel v_tune_session_02
02 intel v_tune_session_0202 intel v_tune_session_02
02 intel v_tune_session_02Vivek chan
 
Comparative Analysis of IT Monitoring Tools
Comparative Analysis of IT Monitoring ToolsComparative Analysis of IT Monitoring Tools
Comparative Analysis of IT Monitoring Toolsapprize360
 
MuleSoft Surat Virtual Meetup#4 - Anypoint Monitoring and MuleSoft dataloader.io
MuleSoft Surat Virtual Meetup#4 - Anypoint Monitoring and MuleSoft dataloader.ioMuleSoft Surat Virtual Meetup#4 - Anypoint Monitoring and MuleSoft dataloader.io
MuleSoft Surat Virtual Meetup#4 - Anypoint Monitoring and MuleSoft dataloader.ioJitendra Bafna
 
Btec Business Level 3 Unit 14 M1
Btec Business Level 3 Unit 14 M1Btec Business Level 3 Unit 14 M1
Btec Business Level 3 Unit 14 M1Rachel Phillips
 
Debug, Analyze and Optimize Games with Intel Tools
Debug, Analyze and Optimize Games with Intel Tools Debug, Analyze and Optimize Games with Intel Tools
Debug, Analyze and Optimize Games with Intel Tools Matteo Valoriani
 
Debug, Analyze and Optimize Games with Intel Tools - Matteo Valoriani - Codem...
Debug, Analyze and Optimize Games with Intel Tools - Matteo Valoriani - Codem...Debug, Analyze and Optimize Games with Intel Tools - Matteo Valoriani - Codem...
Debug, Analyze and Optimize Games with Intel Tools - Matteo Valoriani - Codem...Codemotion
 
Debug, Analyze and Optimize Games with Intel Tools - Matteo Valoriani - Codem...
Debug, Analyze and Optimize Games with Intel Tools - Matteo Valoriani - Codem...Debug, Analyze and Optimize Games with Intel Tools - Matteo Valoriani - Codem...
Debug, Analyze and Optimize Games with Intel Tools - Matteo Valoriani - Codem...Codemotion
 
Intel® Xeon® processor E7-8800/4800 v3 Application Showcase
Intel® Xeon® processor E7-8800/4800 v3 Application ShowcaseIntel® Xeon® processor E7-8800/4800 v3 Application Showcase
Intel® Xeon® processor E7-8800/4800 v3 Application ShowcaseIntel IT Center
 
Get started with watch kit development
Get started with watch kit developmentGet started with watch kit development
Get started with watch kit developmentMindfire Solutions
 

Similar to 06 intel v_tune_session_08 (20)

10 intel v_tune_session_14
10 intel  v_tune_session_1410 intel  v_tune_session_14
10 intel v_tune_session_14
 
Intel VTune
Intel VTuneIntel VTune
Intel VTune
 
07 intel v_tune_session_10
07 intel v_tune_session_1007 intel v_tune_session_10
07 intel v_tune_session_10
 
09 intel v_tune_session_13
09 intel v_tune_session_1309 intel v_tune_session_13
09 intel v_tune_session_13
 
01 intel v_tune_session_01
01 intel v_tune_session_0101 intel v_tune_session_01
01 intel v_tune_session_01
 
04 intel v_tune_session_05
04 intel v_tune_session_0504 intel v_tune_session_05
04 intel v_tune_session_05
 
14 ooad uml-19
14 ooad uml-1914 ooad uml-19
14 ooad uml-19
 
01 intel v_tune_session_01
01 intel v_tune_session_0101 intel v_tune_session_01
01 intel v_tune_session_01
 
09 intel v_tune_session_13
09 intel v_tune_session_1309 intel v_tune_session_13
09 intel v_tune_session_13
 
Design the implementation of CDEx Robust DC Motor.
Design the implementation of CDEx Robust DC Motor.Design the implementation of CDEx Robust DC Motor.
Design the implementation of CDEx Robust DC Motor.
 
IBM MobileFirst Platform v7.0 POT Analytics v1.1
IBM MobileFirst Platform v7.0 POT Analytics v1.1IBM MobileFirst Platform v7.0 POT Analytics v1.1
IBM MobileFirst Platform v7.0 POT Analytics v1.1
 
02 intel v_tune_session_02
02 intel v_tune_session_0202 intel v_tune_session_02
02 intel v_tune_session_02
 
Comparative Analysis of IT Monitoring Tools
Comparative Analysis of IT Monitoring ToolsComparative Analysis of IT Monitoring Tools
Comparative Analysis of IT Monitoring Tools
 
MuleSoft Surat Virtual Meetup#4 - Anypoint Monitoring and MuleSoft dataloader.io
MuleSoft Surat Virtual Meetup#4 - Anypoint Monitoring and MuleSoft dataloader.ioMuleSoft Surat Virtual Meetup#4 - Anypoint Monitoring and MuleSoft dataloader.io
MuleSoft Surat Virtual Meetup#4 - Anypoint Monitoring and MuleSoft dataloader.io
 
Btec Business Level 3 Unit 14 M1
Btec Business Level 3 Unit 14 M1Btec Business Level 3 Unit 14 M1
Btec Business Level 3 Unit 14 M1
 
Debug, Analyze and Optimize Games with Intel Tools
Debug, Analyze and Optimize Games with Intel Tools Debug, Analyze and Optimize Games with Intel Tools
Debug, Analyze and Optimize Games with Intel Tools
 
Debug, Analyze and Optimize Games with Intel Tools - Matteo Valoriani - Codem...
Debug, Analyze and Optimize Games with Intel Tools - Matteo Valoriani - Codem...Debug, Analyze and Optimize Games with Intel Tools - Matteo Valoriani - Codem...
Debug, Analyze and Optimize Games with Intel Tools - Matteo Valoriani - Codem...
 
Debug, Analyze and Optimize Games with Intel Tools - Matteo Valoriani - Codem...
Debug, Analyze and Optimize Games with Intel Tools - Matteo Valoriani - Codem...Debug, Analyze and Optimize Games with Intel Tools - Matteo Valoriani - Codem...
Debug, Analyze and Optimize Games with Intel Tools - Matteo Valoriani - Codem...
 
Intel® Xeon® processor E7-8800/4800 v3 Application Showcase
Intel® Xeon® processor E7-8800/4800 v3 Application ShowcaseIntel® Xeon® processor E7-8800/4800 v3 Application Showcase
Intel® Xeon® processor E7-8800/4800 v3 Application Showcase
 
Get started with watch kit development
Get started with watch kit developmentGet started with watch kit development
Get started with watch kit development
 

More from Niit Care (20)

Ajs 1 b
Ajs 1 bAjs 1 b
Ajs 1 b
 
Ajs 4 b
Ajs 4 bAjs 4 b
Ajs 4 b
 
Ajs 4 a
Ajs 4 aAjs 4 a
Ajs 4 a
 
Ajs 4 c
Ajs 4 cAjs 4 c
Ajs 4 c
 
Ajs 3 b
Ajs 3 bAjs 3 b
Ajs 3 b
 
Ajs 3 a
Ajs 3 aAjs 3 a
Ajs 3 a
 
Ajs 3 c
Ajs 3 cAjs 3 c
Ajs 3 c
 
Ajs 2 b
Ajs 2 bAjs 2 b
Ajs 2 b
 
Ajs 2 a
Ajs 2 aAjs 2 a
Ajs 2 a
 
Ajs 2 c
Ajs 2 cAjs 2 c
Ajs 2 c
 
Ajs 1 a
Ajs 1 aAjs 1 a
Ajs 1 a
 
Ajs 1 c
Ajs 1 cAjs 1 c
Ajs 1 c
 
Dacj 4 2-c
Dacj 4 2-cDacj 4 2-c
Dacj 4 2-c
 
Dacj 4 2-b
Dacj 4 2-bDacj 4 2-b
Dacj 4 2-b
 
Dacj 4 2-a
Dacj 4 2-aDacj 4 2-a
Dacj 4 2-a
 
Dacj 4 1-c
Dacj 4 1-cDacj 4 1-c
Dacj 4 1-c
 
Dacj 4 1-b
Dacj 4 1-bDacj 4 1-b
Dacj 4 1-b
 
Dacj 4 1-a
Dacj 4 1-aDacj 4 1-a
Dacj 4 1-a
 
Dacj 1-2 b
Dacj 1-2 bDacj 1-2 b
Dacj 1-2 b
 
Dacj 1-3 c
Dacj 1-3 cDacj 1-3 c
Dacj 1-3 c
 

Recently uploaded

Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Victor Rentea
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Zilliz
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfOverkill Security
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Angeliki Cooney
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsNanddeep Nachan
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWERMadyBayot
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamUiPathCommunity
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistandanishmna97
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024The Digital Insurer
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfOrbitshub
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...Zilliz
 

Recently uploaded (20)

Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 

06 intel v_tune_session_08

  • 1. Code Optimization and Performance Tuning Using Intel VTune Installing Windows XP Professional Using Attended Installation Objectives • In this session, you will learn to: Identify system-level performance issues by using counter monitor Ver. 1.0 Slide 1 of 11
  • 2. Code Optimization and Performance Tuning Using Intel VTune Installing Windows XP Professional Using Attended Installation Activity: Using Call Graph – 2 Problem Statement: John has developed a code in Java, which involves the use of two-dimensional matrices. However, on execution, the application performs very slowly. Therefore, John decides to view the functional flow of the application and find the details of the functions that have large self time. Therefore, John decides to analyze the performance of the application using call graph of VTune Performance Analyzer. Help John accomplish his task. Ver. 1.0 Slide 2 of 11
  • 3. Code Optimization and Performance Tuning Using Intel VTune Installing Windows XP Professional Using Attended Installation Activity: Using Call Graph – 2 (Contd.) Solution To analyze the performance of the application using call graph, you need to perform the following tasks: 1. Configure call graphs using the Call Graph Configuration wizard. 2. Analyze the functional flow of the application. 3. Analyze the time taken by each function to execute. Ver. 1.0 Slide 3 of 11
  • 4. Code Optimization and Performance Tuning Using Intel VTune Installing Windows XP Professional Using Attended Installation Using Counter Monitor Counter monitor: Enables you to identify system-level issues in an application. Monitors and graphically displays performance counter data. Helps you understand the cause-and-effect relationship between an application and the system on which the application is running. Ver. 1.0 Slide 4 of 11
  • 5. Code Optimization and Performance Tuning Using Intel VTune Installing Windows XP Professional Using Attended Installation Activity: Collecting Performance Counter Data – 1 Problem Statement: Jim has developed a code to generate a list of random numbers. Once the numbers are generated, the user can also implement a delete operation on the list. However, on executing the application, he finds that the application is performing slowly. Jim has analyzed the performance of the application using sampling and call graph data collector of VTune Performance Analyzer. Now Jim decides to use counter monitor of VTune Performance Analyzer to analyze the cause-and-effect relationship between an application and the system on which the application is running. Therefore, Jim decides to analyze the performance of the application using the counter monitor feature of VTune Performance Analyzer. Help Jim to analyze the performance of the application using VTune Performance Analyzer? Ver. 1.0 Slide 5 of 11
  • 6. Code Optimization and Performance Tuning Using Intel VTune Installing Windows XP Professional Using Attended Installation Activity: Collecting Performance Counter Data – 1 (Contd.) Solution To analyze the performance of the application using counter monitor, you need to perform the following tasks: 1. Configure counter monitor using the Counter Monitor Configuration wizard. 2. Analyze the results of counter monitor. Ver. 1.0 Slide 6 of 11
  • 7. Code Optimization and Performance Tuning Using Intel VTune Installing Windows XP Professional Using Attended Installation Activity: Collecting Performance Counter Data – 1 (Contd.) Solution After collecting data, VTune Performance Analyzer displays the collected counter data in the following three views: • Runtime Data View: Displays the chart of the performance counters selected at run time as the activity progresses and counter data is collected. • Logged Data View: Displays the performance counter data selected for logging in the Logged Data view, after the activity ends. • Summary Data View: Displays a statistical view of the counter data. Ver. 1.0 Slide 7 of 11
  • 8. Code Optimization and Performance Tuning Using Intel VTune Installing Windows XP Professional Using Attended Installation Activity: Collecting Performance Counter Data – 2 Problem Statement: Jim has developed an application in Java that involves the use of arrays. He decides to analyze the performance of his application using the counter monitor feature of VTune. He wants to view the processor utilization and the amount of context switching involved in his application. After analyzing the performance of his application, he wishes to optimize his application accordingly. Help Jim to analyze the performance of his application. Ver. 1.0 Slide 8 of 11
  • 9. Code Optimization and Performance Tuning Using Intel VTune Installing Windows XP Professional Using Attended Installation Activity: Collecting Performance Counter Data – 2 (Contd.) Solution To analyze the performance of the application using counter monitor, Jim needs to perform the following tasks: 1. Configure counter monitor. 2. Analyze the results of counter monitor. Ver. 1.0 Slide 9 of 11
  • 10. Code Optimization and Performance Tuning Using Intel VTune Installing Windows XP Professional Using Attended Installation Activity: Collecting Performance Counter Data – 2 (Contd.) Solution You cannot directly configure counter monitor wizard for java application. To collect counter monitor data for java application, you can first create an activity using the sampling wizard and then modify the activity by adding counter monitor from the available data collectors list. Ver. 1.0 Slide 10 of 11
  • 11. Code Optimization and Performance Tuning Using Intel VTune Installing Windows XP Professional Using Attended Installation Summary In this session, you learnt that: The counter monitor collector monitors and graphically displays performance counter data. The performance counter is a feature that measures and gathers the performance-related data that represents the state of a system. Ver. 1.0 Slide 11 of 11

Editor's Notes

  1. Share the objectives with the students.
  2. To demonstrate this activity, you can use the data files provided at the following locations: TIRM  Datafiles for Faculty  Chapter04  Activity05  JavaApplication.zip JavaApplication.zip file contains the optimized and the unoptimized codes. The faculty should first show the demonstration of the unoptimized code. After analyzing the call graph results, the faculty should again run the activity using the optimized code. This would enable the students comparing the results between the optimized and the unoptimized code.
  3. To demonstrate this activity, you can use the data files provided at the following locations: TIRM  Datafiles for Faculty  Chapter04  Activity05  JavaApplication.zip JavaApplication.zip file contains the optimized and the unoptimized codes. The faculty should first show the demonstration of the unoptimized code. After analyzing the call graph results, the faculty should again run the activity using the optimized code. This would enable the students comparing the results between the optimized and the unoptimized code.
  4. Discuss with the students about various counter data. Discuss about various memory and processor bottlenecks. The Counter Monitor feature of VTune Performance Analyzer provides system-level performance information, such as resource consumption, during the execution of an application. The counter monitor data collector of VTune Performance Analyzer collects data for specific performance counter. Ask the students to use VTune Help to explore about how to select a specific counter. The various features of counter monitor collector that you can use are Trigger mechanism and Counter Monitor views. The Trigger mechanism creates trigger to monitor hardware and software counters at predetermined intervals. The various counter monitor views such as runtime view, logged data view, and summary data view helps you to analyze the data collected by the counter monitor. Ask the students to explore the VTune Help to explore about the various views of counter monitor data collector.
  5. To demonstrate this activity, you can use the data files provided at the following locations: TIRM  Datafiles for Faculty  Chapter04  Activity06  Create list.zip Create list.zip file contains the optimized and the unoptimized codes. The faculty should first show the demonstration of the unoptimized code. After analyzing the counter monitor results, the faculty should again run the activity using the optimized code. This would enable the students comparing the results between the optimized and the unoptimized code. In the unoptimized code given for the preceding activity, delete operations are being implemented from the first position of the array list. Deleting an element from the first position of the array requires shifting of all the succeeding elements in the list one position back. Since the list is huge, multiple delete operations from the first position in the list becomes very time consuming. If your application requires you to implement multiple delete operation from the first position of a huge list, it would be better to use a linked list instead of array. The faculty should run the optimized code, which implements a singly linked-list instead of an array.
  6. To demonstrate this activity, you can use the data files provided at the following locations: TIRM  Datafiles for Faculty  Chapter04  Activity05  JavaApplication.zip JavaApplication.zip file contains the optimized and the unoptimized codes. The faculty should first show the demonstration of the unoptimized code. After analyzing the call graph results, the faculty should again run the activity using the optimized code. This would enable the students comparing the results between the optimized and the unoptimized code.
  7. To demonstrate this activity, you can use the data files provided at the following locations: TIRM  Datafiles for Faculty  Chapter04  Activity05  JavaApplication.zip JavaApplication.zip file contains the optimized and the unoptimized codes. The faculty should first show the demonstration of the unoptimized code. After analyzing the call graph results, the faculty should again run the activity using the optimized code. This would enable the students comparing the results between the optimized and the unoptimized code.
  8. To demonstrate this activity, you can use the data files provided at the following locations: TIRM  Datafiles for Faculty  Chapter04  Activity07  Matrix Class.zip Matrix Class.zip file contains the optimized and the unoptimized codes. The faculty should first show the demonstration of the unoptimized code. After analyzing the counter monitor results, the faculty should again run the activity using the optimized code. This would enable the students comparing the results between the optimized and the unoptimized code. In Intel Vtune, you cannot directly analyze the counter monitor results of a Java application. Tell the students if you want to analyze a Java application using the counter monitor feature of Vtune, you can first use the sampling wizard in which you can mention the .class file. You can then modify the activity by using the Advanced Activity Configuration dialog box from which you can select counter monitor from the collectors list.
  9. Summarize the session.