Re: -fprofile-arcs and gcov: data without exit()

2005-10-12 Thread Nathan Sidwell
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 ::

Re: -fprofile-arcs and gcov: data without exit()

2005-10-11 Thread Joe Buck
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

Re: -fprofile-arcs and gcov: data without exit()

2005-10-11 Thread Nathan Sidwell
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

Re: -fprofile-arcs and gcov: data without exit()

2005-10-11 Thread Richard Guenther
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

Re: -fprofile-arcs

2005-07-20 Thread Jan Hubicka
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

Re: -fprofile-arcs

2005-07-18 Thread Rajkishore Barik
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

Re: -fprofile-arcs

2005-07-18 Thread Jan Hubicka
> 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

Re: -fprofile-arcs changes the structure of basic blocks

2005-06-27 Thread Liu Haibin
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.

Re: -fprofile-arcs changes the structure of basic blocks

2005-06-23 Thread Liu Haibin
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

Re: -fprofile-arcs changes the structure of basic blocks

2005-06-23 Thread Daniel Berlin
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

Re: -fprofile-arcs changes the structure of basic blocks

2005-06-23 Thread Zdenek Dvorak
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