Joe Buck wrote:
On Tue, Oct 11, 2005 at 06:01:07PM +0100, Nathan Sidwell wrote:
call __gcov_flush
It seems you could just invoke that function from gdb, and not change
the program at all, right?
that's a neat idea :)
nathan
--
Nathan Sidwell:: http://www.codesourcery.com ::
On Tue, Oct 11, 2005 at 06:01:07PM +0100, Nathan Sidwell wrote:
> Astroman (sent by Nabble.com) wrote:
> > I am working on a piece of software that never exits and I am trying to
> > use -fprofile-arcs and gcov to gather coverage data on it.
> >The code looks like this:
> >int main(){
> > whil
Astroman (sent by Nabble.com) wrote:
I am working on a piece of software that never exits and I am trying to use
-fprofile-arcs and gcov to gather coverage data on it.
The code looks like this:
int main(){
while(1){
foo();
nanosleep(50);
}
}
This is a child process that as
On 10/11/05, Astroman (sent by Nabble.com) <[EMAIL PROTECTED]> wrote:
>
> I am working on a piece of software that never exits and I am trying to use
> -fprofile-arcs and gcov to gather coverage data on it.
> The code looks like this:
> int main(){
>while(1){
> foo();
> nanosleep
uot;200". How to obtain this information?
I think the problem is that foo gets inlined into main, so the offline
copy of foo is really never executed.
Honza
>
> regards,
> Raj
>
>
>
>
>
>
>
> Jan Hubicka <[EMAIL PROTECTED]>
> 07/18/2005 10:29 AM
The frequencies return "0" using
"bb->count". I
would like this to reflect "200". How to obtain this information?
regards,
Raj
Jan Hubicka <[EMAIL PROTECTED]>
07/18/2005 10:29 AM
To
Rajkishore Barik/India/[EMAIL PROTECTED]
cc
gcc@gcc.gnu.org
S
> Hi,
>
> I am trying to profile the frequency of each basic block of
> SPEC 2000 benchmarks by compiling them using -fprofile-arcs and opt -O3.
> After running the benchmark, when I try to read "bb->count" while
> compiling
> using "-fbranch-probabilities and -O3", I get "0" values for basic bl
I found that the optimization must be on in order to see the frequency.
Timothy
On 6/24/05, Liu Haibin <[EMAIL PROTECTED]> wrote:
> Then I think I shouldn't use -fprofile-arcs. The reason why I used
> -fprofile-arcs is when I debugged a program without any flags, I saw
> the frequency was zero.
Then I think I shouldn't use -fprofile-arcs. The reason why I used
-fprofile-arcs is when I debugged a program without any flags, I saw
the frequency was zero. When I added this flag, I saw frequency with
values.
I checked the frequency after life_analysis and before
combine_instructions. I used
On Thu, 23 Jun 2005, Liu Haibin wrote:
Hi,
I want to use profiling information. I know there're two relevent
fields in each basic block, count and frequency. I want to use
frequency because the compiled program is for another architecture so
it cannot run on the host.
Besides the fact that, a
Hello,
> I want to use profiling information. I know there're two relevent
> fields in each basic block, count and frequency. I want to use
> frequency because the compiled program is for another architecture so
> it cannot run on the host.
>
> I use -fprofile-arcs.
this does not make much sens
11 matches
Mail list logo