Author: Jon Dart
Date: 06:55:15 02/01/00
Go up one level in this thread
The profiler is not very intuitive to use, so I'm not surprised
you had trouble. It also seems from the responses that others
have had difficulty too.
However, it does work and I have used it under both VC++ 5.0
and 6.0.
You need to click the "Enable Profiling" options box in the
linker options to use profiling, then re-link.
Then, if you want to run in the VC++ environment, you need to
set the Debug options for your program, specifying a directory
in which it will execute and command-line arguments (if any
are required). This is non-intuitive because typically you're
profiling a program that is not built with debug information,
but you still need to go to the Debug panel and set these options.
If you do all this the profiler should work but I have still
sometimes seen problems running it in the IDE (one possible
problem is not having the environment set up right; see below).
If you want to run it manually from the console window,
this is the procedure:
1. Execute vcvars32.bat in the VC++ bin directory to set your
environment variables for VC++ (Note: you may need to increase
your system's environment size).
2. prep /ft <program name>
3. profile <program name> <command args>
4. prep /m <program name>
5. plist <program name> >output
("Program name" here is the name of the executable, e.g. xxx if
it is xxx.exe).
This works for me.
--Jon
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.