Results 1 to 4 of 4

Thread: Using gprof

  1. #1

    Default Using gprof

    How do i use gprof if i have to compile the application source code using make? A quick reply would be of great help.

  2. #2
    Join Date
    Mar 2010
    Location
    Austin - Texas
    Posts
    10,140
    Blog Entries
    48

    Smile Re: Using gprof

    I am no source code compiling expert, but surely if you need a quick answer, you would start by searching for this on the internet and reading all about gprof before you try to use it. I did find the following link which might be useful to you.

    GNU gprof

    Or, be more specific as to just what type of help you need or difficulty you are having. Just what over all task are you trying to perform here?

    Thank You,
    My Blog: https://forums.opensuse.org/blogs/jdmcdaniel3/

    Software efficiency halves every 18 months, thus compensating for Moore's Law

    Its James again from Austin, Texas

  3. #3

    Default Re: Using gprof

    To generate the profiling information, we can use the -g option when building the file using gcc; i need to know the option to use to generate the profiling information with make.

  4. #4
    Join Date
    Jan 2010
    Location
    Albany, NY USA
    Posts
    118

    Default Re: Using gprof

    I don't know any way to do it other than editing the makefile. If it is a fairly standard makefile done by hand, it should be just a matter of modifying the line that defines CFLAGS (assuming this is a C progam). If it is automatically generated by a scrip or by autotools then that is another story, it could be hairy to just change the Makefile, but it could probably still work.

    Malcolm

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •