PRB: Excluding Libraries with the Visual C++ ProfilerLast reviewed: July 24, 1997Article ID: Q154764 |
The information in this article applies to:
SYMPTOMSThe documentation on "Selective Profiling" in the Visual C++ User's Guide, under the chapter "Profiling Code" says:
... The [profiler] section of TOOLS.INI specifies libraries and object (.OBJ) files for the profiler to ignore. By default, TOOLS.INI excludes the Win32 libraries, Microsoft Foundation Class (MFC) libraries, and C run-time libraries...If you exclude a library and profile for line coverage from the IDE, the profiler does not exclude profiling information related to the source files corresponding to the library. However, when you profile for function timing or function coverage, it does exclude profiling information related to the functions defined in that library. Similarly, if you exclude a source file and profile for function timing or function coverage, the profiler does not exclude profiling information related to the functions defined in that source file. However, when you profile for line coverage, it does exclude profiling information for that source file. See the More Information section below for an example.
RESOLUTIONExclude the library for function timing and function coverage, and exclude the source file for line coverage. You can exclude both the library and source files so that it will work for all profiling methods. You may get the following warning in this case, but you can safely ignore it.
PREP : warning PRF4106: function/source/object/lib test.cpp was never matched MORE INFORMATIONFollow these steps to see the behavior:
|
Keywords : kbusage TlsMisc
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |