flylehe
March 29th, 2009, 04:31 PM
Hi,
I have some questions regarding these profilers:
1. Is oprofile better than gprof in terms of helping optimizing code time performance? Like checking branch misprediction, etc;
2. Why does oprofile require root while gprof doesn't?
I am trying to use oprofile on a server, however I don't have access to root, so here is what I get:
bash-3.2$ opcontrol --vmlinux=/boot/vmlinux-`uname -r`
Normal users are limited to '--dump'.
bash-3.2$ opcontrol --start
Normal users are limited to '--dump'.
bash-3.2$ opcontrol --dump
Unable to complete dump of oprofile data: is the oprofile daemon running?
bash-3.2$ opreport
opreport error: No sample file found: try running opcontrol --dump
or specify a session containing sample files
It seems to tell me I can use dump only, but actually I cannot even start. Is it no way to use oprofile if I am not root?
Would it help if I am able to install my oprofile under my $HOME?
Thanks!
I have some questions regarding these profilers:
1. Is oprofile better than gprof in terms of helping optimizing code time performance? Like checking branch misprediction, etc;
2. Why does oprofile require root while gprof doesn't?
I am trying to use oprofile on a server, however I don't have access to root, so here is what I get:
bash-3.2$ opcontrol --vmlinux=/boot/vmlinux-`uname -r`
Normal users are limited to '--dump'.
bash-3.2$ opcontrol --start
Normal users are limited to '--dump'.
bash-3.2$ opcontrol --dump
Unable to complete dump of oprofile data: is the oprofile daemon running?
bash-3.2$ opreport
opreport error: No sample file found: try running opcontrol --dump
or specify a session containing sample files
It seems to tell me I can use dump only, but actually I cannot even start. Is it no way to use oprofile if I am not root?
Would it help if I am able to install my oprofile under my $HOME?
Thanks!