Author: Dave Gomboc
Date: 19:26:52 02/01/00
Go up one level in this thread
On February 01, 2000 at 20:24:59, Tom Kerrigan wrote: >Many people have given me tips about using the VC++ profiler, and this afternoon >I actually got it to work! > >If other people are brave enough to try this, here are the two main tricks: >1. Modify your program so it doesn't use stdin/stdout >2. Set the program's working directory in Project/Settings > >Here are my comments. > >First, when profiling, my program ran __72 times__ slower than normal. I was >only doing function timing! I think this is absurd. Crazy. How long was the test for? >Second, I did two consecutive profiling runs, and the resulting data was TOTALLY >DIFFERENT. This isn't an issue of one function being a little higher than >another. Example: in the first run, my move generator wasn't even in the top ten >functions. In the second one, it was the most expensive function by a long shot! >None of the other data matched either. And I was running my program for more >than 2 minutes per run! Is it "active" profiling or "passive" profiling? Active is where it watches everything, passive is when it periodically interrupts the run and tracks what routine is currently executing. Active is much slower, but passive can go wacko if the sampling frequency is not "relatively prime" to the execution profile. >So, the upshot is that I would prefer hitting my toes with a hammer to using >this stupid profiler POS again. > >-Tom Don't give up just yet! Dave
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.