Oracle® Solaris Studio 12.4: Code Analyzer User's Guide

Exit Print View

Updated: October 2014

How to Collect Dynamic Memory Access Data From the Binary:

  1. Instrument the binary with Discover using the –a option:
    % discover -a binary_name

    Note -  You must use the version of Discover in Oracle Solaris Studio version 12.3 or 12.4. The –a option is not available in earlier versions of discover.
  2. Run the instrumented binary.

    The dynamic memory access data is written to the dynamic subdirectory in the binary_name.analyze directory.

    Note -  For additional instrumentation options you can specify when instrumenting the binary with discover, see Instrumentation Options in Oracle Solaris Studio 12.4: Discover and Uncover User’s Guide or the discover man page.
  3. (Optional) Start Code Analyzer's GUI or the command-line tool (codean) to analyze and display the data, along with any static code data you might have previously collected. Or, you can use an uninstrumented copy of the binary to collect code coverage data.