Function Coverage

HomeHow Do IDetails

Feature Only in Professional and Enterprise Editions   Profiling is supported only in Visual C++ Professional and Enterprise Editions. For more information, see Visual C++ Editions.

The Function Coverage option in the Profile dialog box profiles the current project, recording whether a function was called.

Function coverage profiling is useful for determining which sections of your code are not being executed. The profiler lists all profiled functions, with an asterisk (*) marking those that were executed. The profiling overhead for function coverage matches the overhead for function counting. Here is a sample function coverage report:

Covered Function
------------------------------------------
    .    _InitInstance (generic.obj)
    .    _LoadAcceleratorsA@8 (user32.def)
    *    _LoadCursorA@8 (user32.def)
    .    _LoadIconA@8 (user32.def)
    .    _SendMessageA@16 (user32.def)
    *    _SetCursor@4 (user32.def)
    .    _SetDlgItemTextA@12 (user32.def)