views:

130

answers:

1

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?

A: 

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.

Mike Dunlavey