www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - D tooling: perf tool, gdb, unit tests, gcov, gprof

reply "Scott Wilson" <scott_wilson_3rd yahoo.com> writes:
Me again. Looking at support for standard gnu tooling in D. For
debugging theres http://wiki.dlang.org/Debugging according to
that gdb support is good. Any comments on the quality & stability
&c.

We also use perf, gprof, gcov. Is there support in D for those.
Or support for D in those. :-) After searching for it it I found
http://stackoverflow.com/questions/20570478/demangling-d-symbols-when-profiling-d-programs-with-perf
so support looks okay but not perfect. GDC seems really
integrated if Im to believe
http://dconf.org/2013/talks/buclaw.pdf. Please reply if there are
more references. Thankyou.


Scott
Sep 21 2014
parent Walter Bright <newshound2 digitalmars.com> writes:
On 9/21/2014 10:38 AM, Scott Wilson wrote:
 Me again. Looking at support for standard gnu tooling in D. For
 debugging theres http://wiki.dlang.org/Debugging according to
 that gdb support is good. Any comments on the quality & stability
 &c.

 We also use perf, gprof, gcov. Is there support in D for those.
 Or support for D in those. :-) After searching for it it I found
 http://stackoverflow.com/questions/20570478/demangling-d-symbols-when-profiling-d-programs-with-perf

 so support looks okay but not perfect. GDC seems really
 integrated if Im to believe
 http://dconf.org/2013/talks/buclaw.pdf. Please reply if there are
 more references. Thankyou.
The dmd compiler can profile your code by merely throwing the -profile switch. It can also generate coverage analysis reports by using the -cov switch.
Sep 21 2014