Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.
7943 Discussions

Code coverage tool with dynamic library

jcspray
Beginner
233 Views

I'm trying to use the code coverage tool to instrument a library with which the application is linked dynamically (.so on linux/ia64). What I have tried is this:
  • Compile the library using "icc -prof_genx"
  • Compile the application using "icc -prof_genx"
  • Run the application, then profmerge.
  • Run codecov with the .spi file from the library build, and the .dpi generated from the application.
What I get in the HTML output is a full listing of the library's code, with no coverage on any functions (incl. for example the initialisation routines which are always called).

Is it possible to use the code coverage tool to instrument a dynamic library? What would be the correct procedure for this?
0 Kudos
0 Replies
Reply