Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
#1736 Errors...
Message
De
27/03/1998 14:59:44
 
 
À
27/03/1998 13:27:56
Christer Klingstedt
Karolinska University Hospital
Stockholm, Suède
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Titre:
Divers
Thread ID:
00087066
Message ID:
00087788
Vues:
31
Syntax for 'Set Coverage' is in VFP Help. Philosophy behind this tool, as explained at Devcon '97 was to develop a code performance monitoring tool. In other words, the column with elapsed time spent on the line of code should be 0.000 for good efficient coding, and if you see something like 2.543 you know you have a "piggy" statement, which should be examined ( of course some statements like 'Index' or 'Pack' can legitimately take seconds, but most of the lines of procedural code that I see in the 'log' files have 0.000 time. Thus, the important thing for me is a detailed 'log' of all the procedural VFP statements that I ( or a member of our team ) has coded. Have had some real surprises that have helped me debug 'methods for events' that I didn't think should fire, or fire in the order that they did. CAVEAT: I do not suggest you run the entire application with 'SET COVERAGE...' since it does write a lot of records ( but is still a whale of a lot faster than DEBUG window with SET COVERAGE ). I think there is a file / FAQ or article in Foxpro Advisor ( somewhere ) where the author created a table and appended from the comma delimited file for programatic analysis -- he indexed on source module, statement number etc. Hope this helps.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform