hasnobrains
hasnobrains

Reputation: 109

Profile C code with dtrace


I was looking through stackoverflow for the best profiling technique.

I have a bunch of processes running 24/7, written in C and using Oracle 10g. I have discovered several tools I want to try: oprofile, strace, systemtap and dtrace.

I want to start with dtrace and thus I was looking for some simple dtrace script that will connect to running process' and print out all function calls, time spent in each ... maybe callgraph.
Please, suggest some good script to start with, any links, tutorials, manuals.

Upvotes: 0

Views: 421

Answers (1)

Jens
Jens

Reputation: 72639

Simple. No DTrace on Linux (last I heard).

If you crave for DTrace and are willing to give a real operating system a try (uh-oh, flamebait :-), try FreeBSD which comes with a functional and integrated DTrace.

Upvotes: 1

Related Questions