Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What sample based profiling tool for FreeBSD?

I want to find profiler like vtune or oprofile on FreeBSD. Do you know any similar?

like image 536
kcwu Avatar asked May 14 '09 17:05

kcwu


2 Answers

The equivalent of oprofile on FreeBSD is hwpmc. It can do both system and process profiling; as of FreeBSD 7.2 it has callchain capture. There's lots of information about it at http://wiki.freebsd.org/PmcTools and the pmcstat man page contains instructions for profiling applications too.

like image 51
BCran Avatar answered Sep 22 '22 01:09

BCran


Well, if you're trying to find a performance problem, it doesn't use a profiler, but this works.

like image 25
Mike Dunlavey Avatar answered Sep 26 '22 01:09

Mike Dunlavey