04-10-2008 3:28 PM
Here a line from the Hit List :
Call = Perform TRANSFER_TO_UNIX
Number = 6
Gross = 5662 microsecond
Net = 810 microseconds
The whole program execution takes 1.705.253 microseconds.
Can somebody explain me the meaning of the GROSS and the NET time using this example ?
The routine TRANSFER_TO_UNIX has been executed 6 times. That is clear.
Is the gross time the total time required for a call or for 6 calls ?
=> following documentation , "the gross time is the total time required for A call. This includes the runtime of all modularization units and abap statement called by the subject."
=> but following a blog read on this forum, the gross time is the total times, not the times per execution.
That confused me very much .
Can somebody clarify that for me ?
Also, what I don't understand at all is the NET time
=> following documentation, the net time is the gross time less the time required for modularization units (MODULE, PERFORM, CALL FUNCTION, CALL SCREEN, CALL TRANSACTION, CALL METHOD, CALL DIALOG, SUBMIT), and for the ABAP statements listed separately. For statements such as APPEND, the gross time is the same as the net time.
If the gross and net runtimes of a call are different, the call must either contain further calls or modularization units
Here is the code of the routine :
add 1 to w_nb_ok.
clear l_record.
l_record-gpart = <f_vkont>-gpart.
l_record-vkont = <f_vkont>-vkont.
l_record-mahnv = <f_vkont>-mahnv.
l_record-zzfbdate = <f_vkont>-zzfbdate.
l_record-zzcastatus = <f_vkont>-zzcastatus.
l_record-ktokl = <f_vkont>-ktokl.
l_record-regiogr_ca_b = <f_vkont>-regiogr_ca_b.
l_record-mahnv_new = <f_vkont>-mahnv_new.
l_record-zzfbdate_new = <f_vkont>-zzfbdate_new.
l_record-zzfbdate_upd = <f_vkont>-zzfbdate_upd.
l_record-zzcastatus_new = <f_vkont>-zzcastatus_new.
l_record-zzcastatus_upd = <f_vkont>-zzcastatus_upd.
transfer l_record to w_output_file.
I
Thanks in advance
Marie
04-11-2008 8:42 AM
Call = Perform TRANSFER_TO_UNIX
Number = 6
Gross = 5662 microsecond
Net = 810 microseconds
Gross and net a re both total times, i.e. the time for all six executions, gross and net reflect the modular order of programs, gross includes the time spent in other trace events inside and below Perform TRANSFER_TO_UNIX, i.e. database selects inside appear separately and another perform inside appears also separately.
The net time is the time spent inside, usually the internal table operations.
The perform above is no issue, 5.6 millisec and 0.8ms are o.k.
Siegfried
04-11-2008 8:49 AM
> the call must either contain further calls or modularization units,
yes
Check in your measurment setting what is traced separately, for an exercise you can switch off everything besides the call function, methods and forms,
then you will see gross = net if there no other call inside.
But the recommended setting is described in the blog.
Note, the sum of all net times is the total runtime, and the maximum of the gross times should be the same. Unfortunately there are slight deviations in the gross
times and the displayed total time in the SE30 is taken from the gross times.
Siegfried