GProf with BlitzMax?

BlitzMax Forums/BlitzMax Programming/GProf with BlitzMax?

Armitage 1982(Posted 2009) [#1]
Does anybody already used gprof for profiling BlitzMax application ?

http://www.network-theory.co.uk/docs/gccintro/gccintro_80.html

Is it working ?
Is there an easy way for doing this ?

Thanks


Tommo(Posted 2009) [#2]
I dont think this will work with bmax. The profiler related code is inserted during compiling.
There is a profiler for bmax, but you have to insert profiling code by hand:
http://www.blitzbasic.com/Community/posts.php?topic=43396#484884


markcw(Posted 2009) [#3]
You could try Antony's TProfiler class.
http://www.blitzbasic.com/codearcs/codearcs.php?code=1685

There is also a profiler for Blitz3D written in C#.
http://www.blitzbasic.com/toolbox/toolbox.php?tool=230


Armitage 1982(Posted 2009) [#4]
Always good to know before trying :)
Thanks

I already have my own time measurement class but since my project is pretty big Gprof was more interesting in this case.

P-S: @mark your signature doesn't work very well with greasemonkey "Sourcecode" box (available somewhere in the forum). It's like a box of 1600px wide of HTML tag links ^^


Brucey(Posted 2009) [#5]
The best place for this kind of thing is via BCC.

Mr Sibly needs to get his thinking hat on, and come up with a way to do it there!

(High resolution timing, please :-)


markcw(Posted 2009) [#6]
Ok, thanks for the info. I changed it to quote tags.