Profiling

This is a discussion on Profiling within the C Programming forums, part of the General Programming Boards category; Yarrr... did an internets search, board search, found a lot of references to this, but no answers. Using gcc (Mingw); ...

  1. #1
    moi
    moi is offline
    Registered User moi's Avatar
    Join Date
    Jul 2002
    Posts
    946

    Profiling

    Yarrr... did an internets search, board search, found a lot of references to this, but no answers. Using gcc (Mingw); and I want to profile. Compile everything and link with -g -pg, run the application, terminate normally (return 0 from main), and then use gprof to view the output. Looks great, except "no time accumulated" (and all times are 0.00), which makes it kind of useless to me.
    hello, internet!

  2. #2
    cwr
    cwr is offline
    Registered Luser cwr's Avatar
    Join Date
    Jul 2005
    Location
    Sydney, Australia
    Posts
    869
    Does the program take more than 10 milliseconds to run?

  3. #3
    moi
    moi is offline
    Registered User moi's Avatar
    Join Date
    Jul 2002
    Posts
    946
    Quote Originally Posted by cwr
    Does the program take more than 10 milliseconds to run?
    The run I have is about 30 seconds of cpu time on a 2.6ghz P4, with over 1.5 billion function calls recorded by gprof.
    hello, internet!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. profiling
    By zaac in forum C++ Programming
    Replies: 3
    Last Post: 01-30-2009, 10:06 AM
  2. Profiling for c code in eclipse
    By hai12345 in forum C Programming
    Replies: 2
    Last Post: 10-10-2008, 05:46 PM
  3. Profiling my code
    By Kempelen in forum C Programming
    Replies: 10
    Last Post: 07-09-2008, 12:59 AM
  4. I can't get profiling to work with Visual Studio 6
    By Darkness in forum C++ Programming
    Replies: 7
    Last Post: 12-30-2004, 10:37 PM
  5. Enabling Profiling in VS.NET
    By xds4lx in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 04-17-2002, 02:10 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21