PRB: Profiler Won't Merge Stats from 2 Diff Op Sys on Same PC (136650)



The information in this article applies to:

  • Microsoft Source Profiler, when used with:
    • Microsoft Visual C++ 2.1
    • Microsoft Visual C++ 2.2

This article was previously published under Q136650
The information in this article is included in the documentation starting with Visual C++ 5.0. Look there for future revisions.

SYMPTOMS

The profiler tools will not merge profile sessions run on two different operating systems even if the are on the same computer. It generates this error:
PREP : fatal error PRF1463: different clock/sampling frequency
Note: This problem does not occur in VC++ 4.0 and later.

RESOLUTION

Do not attempt to merge profiling statistics gathered when profiling on two different operating systems.

STATUS

This behavior is by design.

MORE INFORMATION

Steps to Reproduce Behavior

  1. Start a sample project and enable profiling in the link build options.
  2. Build the project.
  3. Run the profiler by clicking Profile on the Tools menu with Function Timing 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 Tools 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.

Modification Type:MajorLast Reviewed:10/17/2003
Keywords:kbide kbprb KB136650