Share via


Profiler Won't Merge Statistics from Two Different Operating Systems on the Same Computer

OverviewHow Do I

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

The profiler tools will not merge profile sessions run on two different operating systems. For example, if you copy the profiler sessions from Windows NT to a Windows 95 machine and try to merge the sessions, the profiler will generate this error:

PREP : fatal error PRF1463: different clock/sampling frequency

Do not attempt to merge profiling statistics gathered when profiling on two different operating systems. This behavior is by design.

To reproduce this behavior

  1. Start a sample project and enable profiling in the Project Settings dialog box (Build menu, Settings command).

  2. Build the project.

  3. Run the profiler by clicking Profile on the Build menu with FunctionTiming selected.

  4. Exit, and start a different operating system; that is, if you were in Windows 95, start Windows NT, or vice versa.

  5. From the development environment, run the profiler by clicking Profile on the Build menu with Merge selected.

Note   The error doesn't appear if the profiling was done with the same operating system but on different computers. It will merge the timing statistics even though the results may not be consistent.