Sw4   >   Misc   >   Performance Testing
A Programmer_Task is availalbe to developer for testing and improving performance of methods.
There are two
items used to interface with the programmer task millisecond timecount functions.If you have a method or series of method you want to check to find out where the greatest performance hit is taking place, do the following.
Do $itasks.Programmer_Task.$logTime($cmethod,'begin')
Do $itasks.Programmer_Task.$logTime($cmethod,'end')
Do $itasks.Programmer_Task.$logTime($cmethod,'begin')
Do $itasks.Programmer_Task.$logTime($cmethod,'begin SQL fetch')
Do List.$getAllRecords() Returns FlagOK
Do $itasks.Programmer_Task.$logTime($cmethod,'end SQL fetch')
If FlagOK
Do $itasks.Programmer_Task.$logTime($cmethod,'begin loop')
For List.$line from 1 to List.$linecount step 1
; Do some stuff.
End For
Do $itasks.Programmer_Task.$logTime($cmethod,'end loop')
End If
Do $itasks.Programmer_Task.$logTime($cmethod,'end')
Quit method FlagOK