oprofile

Is there any similar tool for Linux that works like Shark on Mac OS X?

Shark on Mac OS X is a great tool for profiling an application on a running system. Is there any similar tools for Linux? OProfile looks like it could be, anyone used it? ...

What is the best way to get the most useful output from oprofile?

Using tools such as: opreport opcontrol opannotate I am starting to use this tool and trying to find the best combinations, examples to get the most out of profiling. Thanks ...

Which profiler is more accurate: OProfile or Google Performance Tools ?

I found two great profilers: OProfile Google Performance Tools Have anyone tried them both? Which is better? ...

Linux time sample based profiler.

short version: Is there a good time based sampling profiler for Linux? long version: I generally use OProfile to optimize my applications. I recently found a shortcoming that has me wondering. The problem was a tight loop spawning c++filt to demangle a c++ name. I only stumbled upon the code by accident while chasing down another b...

Measuring execution time of selected loops

I want to measure the running times of selected loops in a C program so as to see what percentage of the total time for executing the program (on linux) is spent in these loops. I should be able to specify the loops for which the performance should be measured. I have tried out several tools (vtune, hpctoolkit, oprofile) in the last few ...

oprofile unable to produce call graph

hello I am trying to use oprofile to generate call graph. Compiler is g++, platform is linux x86-64, linker is gfortran C++ code is compiled with -fno- omit-frame-pointer. oprofile is started with --callgraph=25. report I run with --callgraph. the call graph is produced but it's only includes self time, which is not much use what am ...

Basic doubt in Oprofile

Hello, I am trying to profile my software (in Linux) with oprofile. My software consists of both userspace and kernel module. First my doubt is what does the --separate=kernel option do? What will be the difference when running without that option? I did try to see it but couldn't find any difference. Could you please post an example? C...

Oprofile get no samples

Hi, I have installed Oprofile 0.9.5/0.9.6 in my server, but it get no samples at all. The log of oprofile is: -- OProfile Statistics -- Nr. sample dumps: 288 Nr. non-backtrace samples: 0 Nr. kernel samples: 0 Nr. lost samples (no kernel/user): 0 Nr. lost kernel samples: 0 Nr. incomplete code structs: 0 Nr. samples lost due to sample fi...

oprofile unable to produce callgraph on ARM

This is actually an exact duplicate of this SO question which unfortunately does not have any answer. Is it possible to get a proper callgraph on ARM? I'm using oprofile 0.9.6 on an ARM926 which does not have performance counters so oprofile defaults to using the timer interrupt, I've set the --callgraph option and my app is compiled wit...

oprofile on Linux running in a virtual machine

I'm running a Linux Ubuntu 10.4 VM using VirtualBox. I'm trying to use oprofile to profile some application in the virtual machine. I've installed oprofile 0.9.6 but I cannot get it to work. When I try to start I get the following error: opcontrol --start /usr/local/bin/opcontrol: line 323: /usr/local/bin/ophelp: cannot execute binary f...

What profiler should I use to measure _real_ time (including waiting for syscalls) spend in this function, not _CPU_ one.

The application does not calculate things, but does i/o, read files, uses network. I want profiler to show it. I expect something like something like in callgrind that calls clock_gettime each proble. Or like oprofile that interrupts my application (while it is sleeping or waiting for socket/file/whatever) to see what is it doing. I w...

How am I supposed to interpret OProfile output?

I tried profiling my application with OProfile recently. The data gathered is already very valuable to me, but I'm having difficulties with its precise interpretation. After running my app with oprofile set up and running, I generated the report and got: root@se7xeon:src# opreport image:test -l -t 1 Overflow stats not available C...