Borland's Overlay Profiler (OVRPROF) ------------------------------------ Since certain overlaid programs don't work well with the virtual DOS profiler (TF386) and TPROF.EXE doesn't have the capacity to load large programs, we have created a stand-alone overlay profiler. OVRPROF is basicly two .OBJ files that hook into a special function in the overlay manager that notifies OVRPROF when a module is loaded. OVRPROF then uses your program's detailed .MAP file to derrive the name of the module. This information is recorded in a collection that keeps track of: Module name Segment Address Count (number of times the module was loaded) Current DOS 18.2 timer tic value (for chronology) There are two DOS environment variables that control the way that OVRPROF works: OVRPROF= {output file or device} OVRPROFALL= {Y for printing all data} By default, the output is sent to stdout. By specifying a file or device name to the OVRPROF= variable, the output will be directed there. The output file contains either one or three parts (depending on the options set). The default section is printed out at the end of the program, and contains the accumulated statistics on all the overlaid modules. If a module wasn't called, then it's count value will be zero. If OVRPROFALL= is set to 'Y', then the modules are logged out as they are read in from the .MAP file, and also as they are called by the overlay manager. This allows the chronology to be kept intact. Also the elapsed number of tics between module loads are displayed. **WARNING** Do not attempt to overlay OVRPROF.OBJ or OVRHLP.OBJ, they must both be resident modules. To use, simply link with both modules (OVRPROF.OBJ & OVRHLP.OBJ), and tell TLINK to generate a detailed map file (/S).