Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Performance subroutine

Former Member
0 Likes
845

Hi Expert,

Is there any tcode to do the analisi for particular subroutine. not the whole program. I has used the SE30 and ST05, that one to run whole session. not for particulary subroutine. example :

perform testing_01.

perform testing_02.

perform testing_03.

here I want to now for "perform testing_01" taken how long to run this subroutine or how milisecond. thank you

Best Regards,

Kohokoho

1 ACCEPTED SOLUTION
Read only

ThomasZloch
Active Contributor
0 Likes
739

In SE30 you can maintain your own variant under "measurement restrictions". There you can enter the subroutine under "program (parts)". Haven't done this myself yet, but it sounds like it should work.

Thomas

6 REPLIES 6
Read only

Former Member
0 Likes
739

do like this


 DATA: t1, t2, t3, t4, t5 TYPE i.

GET RUN TIME FIELD t1.
perform testing_01.
GET RUN TIME FIELD t2.

t3 = t2 - t1.

t3 will give total runtime taken by testing_01, similarly u can repeat for other subroutines

Read only

0 Likes
739

Hi Kartik Tarla,

Hmm... very helpful but since Iam in production cannot change the code, I will keep your answer for my reference :). thank you

Best Regards,

Kohokoho

Read only

0 Likes
739

Hi Kartik Tarla,

Hmm... very helpful but since Iam in production cannot change the code, I will keep your answer for my reference :). thank you

Best Regards,

Kohokoho

Read only

ThomasZloch
Active Contributor
0 Likes
740

In SE30 you can maintain your own variant under "measurement restrictions". There you can enter the subroutine under "program (parts)". Haven't done this myself yet, but it sounds like it should work.

Thomas

Read only

0 Likes
739

Hi Thomas Zloch,

Yes I got it according your answer. Thanks Thomas.

Best Regards,

Kohokoho

Read only

Former Member
0 Likes
739

trace everything with SE30 and check the detail result.