Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Coverage Profiler - not enough precision!
Message
 
To
24/12/1998 11:54:11
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00170177
Message ID:
00170421
Views:
25
Hi Dean,

>That is sort of my point too. In my test, the longest time for a single line was 0.002. This was about 6 lines out of a couple of hundred. A particular method took as long as 0.4?? something, but its individual lines mostly show 0.000. Not much use for optimizing code!

Well, this tool is stored in a Coverage.App and the menu says "Coverage Profiler". Coverage is the basic job of this tool, profiling an additional feature. For technical reasons, the precision of the profiler is not very high, it's just like Seconds(), which under NT is only precise to a 1/100st second. That's by far not enough to profile a single line.

When I find a slow method but can't figure out which part of the method does make it slow, I go back to the old method. That is:

a) I add code to measure an entire codeblock:
   nStart = Seconds()
   * several lines of code
   nEnd = Seconds()
   DebugOut "Block #1"+Str(nEnd-nStart,10,3)
b) I measure single lines in a loop.

Christof
--
Christof
Previous
Reply
Map
View

Click here to load this message in the networking platform