CodeRain
CodeRain

Reputation: 6582

profiling in solaris

Can anyone suggest a good tool to profile a program compiled with SunCC compiler. Also please suggest a good equivalent of valgrind for the same.

Upvotes: 2

Views: 2816

Answers (3)

Aram Hăvărneanu
Aram Hăvărneanu

Reputation: 784

DTrace is the best tool for profiling [in] the universe.

DTrace is a comprehensive dynamic tracing framework for the Solaris™ Operating Environment. DTrace provides a powerful infrastructure to permit administrators, developers, and service personnel to concisely answer arbitrary questions about the behavior of the operating system and user programs.

It's not marketing, it really allows just that.

The Solaris Dynamic Tracing Guide describes how to use DTrace to observe, debug, and tune system behavior. The DTrace guide also includes a complete reference for bundled DTrace observability tools and the D programming language.

DTrace is also available in Mac OS X, (there's a nice GUI for it, Instruments), and a FreeBSD port that has only kernel mode providers is also available.

Upvotes: 4

evolvah
evolvah

Reputation: 645

On SPARC hardware, you may want consider IBM Rational Quantify for performance profiling.

On the cheap, you can get away with pstack sampling, prstat -vL, and instrumenting your application with gethrtime().

Upvotes: 0

alanc
alanc

Reputation: 4170

The Sun Studio compilers include Performance Analyzer for profiling and Memory Runtime Checking features in the dbx debugger.

See also the answers to Locate bad memory access on Solaris.

Upvotes: 1

Related Questions