How to Collect Dynamic Memory Access Data From the Binary:
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.
Run the instrumented binary.
The dynamic memory access data is written to the dynamic
subdirectory in the binary_name.analyze
directory.
(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.