Profiling shared libraries

Runtime Analysis

In order to perform runtime analysis on a shared library, you must create an application node containing both a small program that uses the library, and a reference link to the library.

After the execution of the application node, the runtime analysis results are located in the application node.

To profile a shared library:

  1. Add the library to your project as described in Using library nodes.

  2. Create an empty application node:

    • Right-click a group or project node and select Add Child and Application from the popup menu.

    • Enter the name of the application node

  3. Inside the application node, create a source file containing a short program that uses the shared library.

  4. Link the application node to the shared library:

    • Right-click the application or test node that will use the shared library and select Add Child and Reference from the popup menu.

    • Select the library node and click OK.

  5. Select the application node, click the Settings button, and set the Build options to include the runtime analysis tools that you want to use.

  6. Build and execute the application node.

Example

An example demonstrating how to use Runtime Analysis tools on shared libraries is provided in the Shared Library example project. See Example projects for more information.

Related Topics

Using library nodes | Testing shared libraries | Selecting Build Options for a Node