bug-cflow
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-cflow] Occurrence of a single function


From: Louis Bertrand
Subject: Re: [bug-cflow] Occurrence of a single function
Date: Sun, 06 Dec 2015 14:16:10 -0500

‎Hi,
Wrong tool. Don't use a hammer when you need a screwdriver. 
I think you might need a runtime profiler.
Regards
 --Louis

Louis Bertrand <address@hidden>‎
  Original Message  

Actually i am trying to do the exact same thing.
Trying to depict the functions that are called in the loops in a better way.

Could you pls help me out in this aspect?

On Sat, Dec 5, 2015 at 10:30 PM, <address@hidden> wrote:

> Date: Sat, 5 Dec 2015 08:53:00 -0500
> From: Louis Bertrand <address@hidden>
> To: address@hidden
> Subject: Re: [bug-cflow] Occurrence of a single function
>
>
> > Date: Thu, 3 Dec 2015 14:20:18 +0530
> > From: Debajyoti Majumdar <address@hidden>
> > To: address@hidden
> > Subject: [bug-cflow] Occurrence of a single function
> >
> > Hello..
> > suppose in my c code if the same function is called again and again, the
> > output of cflow has only one occurrence of that particular code.
> > Why is it so?
> >
> > Eg: my test code is:
> > 1 #include<stdio.h>
> > 2 int main(){
> > 3 printf("hello ");
> > 4 printf("world");
> > 5
> > 6
> > 7
> > 8 return 0;
> > 9 }
> > ~
> > output is:
> >
> > main() <int main () at /home/deb/test.c:2>:
> > printf()
> >
> >
> > Shouldn't the ouput have 2 occurrences of printf()?
> > -------------- next part ???????
>
> cflow shows the caller-callee dependencies (see the documentation).
> What if your call to printf() was in a loop in which the number of
> iterations
> was determined at runtime?
> Regards
> ?Louis
>
> Louis Bertrand
> address@hidden
>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]