Thread: Profiling

  1. #1
    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
    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
    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, 04:46 PM
  3. Profiling my code
    By Kempelen in forum C Programming
    Replies: 10
    Last Post: 07-08-2008, 11:59 PM
  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, 01:10 PM