0

I have two VS2008 C++ projects. One builds a static library (.lib). The other uses that library and builds an executable. I would like to profile the .exe, but am primarily interested in the profile of the code inside the library. When I run the profiler in the .exe project, I only get stats on functions in that project, and the library code is not covered at all. Do I need to do something special when building the library to get it profiled as well?

hlovdal
  • 26,565
  • 10
  • 94
  • 165
Brian O'Neill
  • 71
  • 1
  • 2
  • 2

1 Answers1

0

If your goal is to find ways to speed up your program (as opposed to just getting general timing numbers and invocation counts, call-graph, etc.), then the random halt technique works just fine in VS, library or not. I use it all the time.

Community
  • 1
  • 1
Mike Dunlavey
  • 40,059
  • 14
  • 91
  • 135