Re: Profile: zero total time
On 09/07/2011 13:29, Matthew Farkas-Dyck wrote: Yes -- I just tried it threaded, and the profile is true. Thanks for your help. Might this warrant another ticket? Please add to the existing ticket: http://hackage.haskell.org/trac/ghc/ticket/5282 if it is reproducible on Linux, there's a much greater chance I'll be able to fix it. Cheers, Simon On 8 July 2011 16:27, David Peixottod...@rice.edu wrote: Does it make a difference if you use the threaded vs. non-threaded runtime? I'm seeing the odd behavior on Mac, but only for the single-threaed runtime. http://hackage.haskell.org/trac/ghc/ticket/5282#comment:8 On Jul 7, 2011, at 2:45 PM, Matthew Farkas-Dyck wrote: Sorry, I ought to have mentioned: $ uname -sr Linux 2.6.38 On 7 July 2011 14:03, Daniel Fischerdaniel.is.fisc...@googlemail.com wrote: On Thursday 07 July 2011, 20:44:57, Matthew Farkas-Dyck wrote: I am trying to take a profile of a program, but when I run it, the total time (as given in the profiling report file) is zero! If you're on a Mac, it could be http://hackage.haskell.org/trac/ghc/ticket/5282 -- Matthew Farkas-Dyck ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Re: Profile: zero total time
Does it make a difference if you use the threaded vs. non-threaded runtime? I'm seeing the odd behavior on Mac, but only for the single-threaed runtime. http://hackage.haskell.org/trac/ghc/ticket/5282#comment:8 On Jul 7, 2011, at 2:45 PM, Matthew Farkas-Dyck wrote: Sorry, I ought to have mentioned: $ uname -sr Linux 2.6.38 On 7 July 2011 14:03, Daniel Fischer daniel.is.fisc...@googlemail.com wrote: On Thursday 07 July 2011, 20:44:57, Matthew Farkas-Dyck wrote: I am trying to take a profile of a program, but when I run it, the total time (as given in the profiling report file) is zero! If you're on a Mac, it could be http://hackage.haskell.org/trac/ghc/ticket/5282 -- Matthew Farkas-Dyck ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Profile: zero total time
I am trying to take a profile of a program, but when I run it, the total time (as given in the profiling report file) is zero! total time =0.00 secs (0 ticks @ 20 ms) However, the -s option yields the following data: 3,429,300,984 bytes allocated in the heap 210,760,024 bytes copied during GC 23,647,224 bytes maximum residency (13 sample(s)) 3,536,968 bytes maximum slop 58 MB total memory in use (0 MB lost due to fragmentation) Generation 0: 6339 collections, 0 parallel, 1.14s, 1.42s elapsed Generation 1:13 collections, 0 parallel, 0.28s, 0.34s elapsed INIT time0.00s ( 0.00s elapsed) MUT time 96.60s (124.50s elapsed) GCtime1.42s ( 1.75s elapsed) RPtime0.00s ( 0.00s elapsed) PROF time0.00s ( 0.00s elapsed) EXIT time0.00s ( 0.00s elapsed) Total time 98.02s (126.25s elapsed) %GC time 1.4% (1.4% elapsed) Alloc rate35,498,347 bytes per MUT second Productivity 98.5% of total user, 76.5% of total elapsed The time taken by each cost centre is also zero. The program is compiled with options -prof -auto-all -caf-all by GHC 7.0.3 and run with RTS options -p -s. The true time taken is certainly NOT zero. How is this possible? Thanks. Cheers, Matthew Farkas-Dyck ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Re: Profile: zero total time
On Thursday 07 July 2011, 20:44:57, Matthew Farkas-Dyck wrote: I am trying to take a profile of a program, but when I run it, the total time (as given in the profiling report file) is zero! If you're on a Mac, it could be http://hackage.haskell.org/trac/ghc/ticket/5282 ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Re: Profile: zero total time
Sorry, I ought to have mentioned: $ uname -sr Linux 2.6.38 On 7 July 2011 14:03, Daniel Fischer daniel.is.fisc...@googlemail.com wrote: On Thursday 07 July 2011, 20:44:57, Matthew Farkas-Dyck wrote: I am trying to take a profile of a program, but when I run it, the total time (as given in the profiling report file) is zero! If you're on a Mac, it could be http://hackage.haskell.org/trac/ghc/ticket/5282 -- Matthew Farkas-Dyck ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users