Upload
dualpower19
View
224
Download
0
Embed Size (px)
Citation preview
8/3/2019 Optimization of ABAP
http://slidepdf.com/reader/full/optimization-of-abap 1/20
RUNTIME ANALYSIS
8/3/2019 Optimization of ABAP
http://slidepdf.com/reader/full/optimization-of-abap 2/20
Functional Overview
• The runtime analysis tool allows you to examine the performance ofany transaction, ABAP program, or function module that you createin the ABAP Workbench. It saves its results in performance data
files, which you can display on the screen. You can use theseresults to identify runtime-intensive statements, SQL statements,and show the hierarchy of program calls. If you want to keepperformance data files for future reference, you can store themlocally on the frontend.
• To start the runtime analysis, choose Tools ® ABAP Workbench ,Test ® Runtime analysis (or transaction SE30). . On the initialscreen, you can choose one of the four main functions:
8/3/2019 Optimization of ABAP
http://slidepdf.com/reader/full/optimization-of-abap 3/20
From the results of the runtime analysis, you can identify:
• Excessive or unnecessary use of modularization units(subroutines or function modules) and ABAP statements
• CPU-intensive program functions
• User-specific functions that could be replaced with ABAP
statements• Inefficient or redundant database access.
8/3/2019 Optimization of ABAP
http://slidepdf.com/reader/full/optimization-of-abap 4/20
Initial Screen
8/3/2019 Optimization of ABAP
http://slidepdf.com/reader/full/optimization-of-abap 5/20
Starting the Tool
From the initial screen, you can start the following mainfunctions:
• Tips & Tricks• Setting the measurement restrictions
• Start the runtime analysis in the current session
• Start the runtime analysis in a parallel session• Display and process performance files
8/3/2019 Optimization of ABAP
http://slidepdf.com/reader/full/optimization-of-abap 6/20
Main Functions
• In the simplest case, you would enter a short descriptionand a measurement object (transaction, program, or
function module) to run the analysis in the current session.
• Setting the measurement restrictions:In the Measurement restrictions group box, you can
make more specific restrictions for the measurement.For example, you may want to include only certainstatements or time periods.
8/3/2019 Optimization of ABAP
http://slidepdf.com/reader/full/optimization-of-abap 7/20
Main Functions
• From the initial screen, you can specify whether theanalysis should run in the same session or in a parallelsession using the Enable/Disable button in the In parallel
session group box.
• The Performance file group box contains options for
analyzing performance files.
8/3/2019 Optimization of ABAP
http://slidepdf.com/reader/full/optimization-of-abap 10/20
Objective
• The SQL Trace part of the Performance Trace tool allows you to seehow the OPEN SQL statements that you use in ABAP programs areconverted to standard SQL statements and the parameters withwhich the embedded SQL statements are passed to the databasesystem.
• While the trace is switched on, the SQL Trace function records all
database activity by a particular user or group of users. The R/3System takes OPEN SQL statements and converts them in toembedded SQL statements that it passes to the database.
8/3/2019 Optimization of ABAP
http://slidepdf.com/reader/full/optimization-of-abap 11/20
The SQL trace tells you:
• The SQL statements executed by your program.
• The values that the system uses for particular database access andchanges.
• How the system converts ABAP Open SQL statements (such asSELECT) into Standard SQL statements.
• Where your application executes COMMITs.
• Where your application repeats the same database access.• The database accesses and changes that occur in the update part
of your application.
8/3/2019 Optimization of ABAP
http://slidepdf.com/reader/full/optimization-of-abap 12/20
Screen looks like :
8/3/2019 Optimization of ABAP
http://slidepdf.com/reader/full/optimization-of-abap 13/20
SOURCE CODE INSPECTOR
8/3/2019 Optimization of ABAP
http://slidepdf.com/reader/full/optimization-of-abap 14/20
Overview ..
• The Code Inspector tests single objects or object sets (programs,function groups, classes, interfaces, Dictionary objects) forperformance, security, serviceability, error proneness, and statistical
information.• Object sets, check variants, and inspections are created using
transaction SCI.Object Sets and Check Variants (that is, combinations of single
checks to which you can assign parameters) are managedindependently of one another. An Inspection connects one checkvariant with an object set. Inspections, object sets, and checkvariants are created by one user locally or visible to all users
globally• An inspection returns a Check Result, from which you can derive
another object set.
8/3/2019 Optimization of ABAP
http://slidepdf.com/reader/full/optimization-of-abap 15/20
Screen Looks like ..
Name of anInspection
Name of anObject Set
Name of Check
Variant
8/3/2019 Optimization of ABAP
http://slidepdf.com/reader/full/optimization-of-abap 16/20
Important Terms in Source Code Inspection
• Element name of inspection :
An inspection consists of an object set (or a single object) and a
check variant. If the inspection is executed, the single checks in thecheck variant are carried out on the objects in the object set. Theresult is a list of errors, warnings, and information.
8/3/2019 Optimization of ABAP
http://slidepdf.com/reader/full/optimization-of-abap 17/20
Important Terms in Source Code Inspection
• Object Set :
An object set consists of one or more single objects. The Single
Objects can be:-- Program
-- Function group
-- Class-- Interface or
-- Dictionary object.
8/3/2019 Optimization of ABAP
http://slidepdf.com/reader/full/optimization-of-abap 18/20
Important Terms in Source Code Inspection
• Check Variant :
A check variant consists of one or more single checks, some ofwhich can be assigned parameters.
8/3/2019 Optimization of ABAP
http://slidepdf.com/reader/full/optimization-of-abap 19/20
Code Inspector Results