www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - gchunt v0.1.0 is out!

reply Dmitry Olshansky <dmitry.olsh gmail.com> writes:
gchunt is a tool is to help D developers identify and keep in check the 
usage of GC in their projects.

So far it just postprocesses D compiler's -vgc output into a nice Wiki 
table. Results looks like this (Phobos):
http://wiki.dlang.org/Stuff_in_Phobos_That_Generates_Garbage#Labeled_data

Notice the source links grouped for each allocation reason per function. 
In short: it's a ready to use spread-sheet for reviewers to work through.

Release notes & Windows binary:
https://github.com/DmitryOlshansky/gchunt/releases/tag/v0.1.0

Past discussions and the origin of the tool:
http://forum.dlang.org/thread/pzyzqwpqdllegxnysmwz forum.dlang.org#post-m11hhb:2423nf:241:40digitalmars.com

Happy GC hunting !

-- 
Dmitry Olshansky
Nov 11 2014
next sibling parent reply "Kagamin" <spam here.lot> writes:
https://github.com/D-Programming-Language/phobos/blob/271c771a57764dcc511ca12ae91d490872d9b500/std/base64.d#L1144

Probably should be an assert?
Nov 12 2014
parent reply Dmitry Olshansky <dmitry.olsh gmail.com> writes:
12-Nov-2014 13:32, Kagamin пишет:
 https://github.com/D-Programming-Language/phobos/blob/271c771a57764dcc511ca12ae91d490872d9b500/std/base64.d#L1144


 Probably should be an assert?
I'd bet it should. Ranges typically don't `enforce`. -- Dmitry Olshansky
Nov 12 2014
parent reply "Kagamin" <spam here.lot> writes:
Hmm... now that I think of it, base64 is a format used for data 
transfer, so it's unlikely to come from a trusted source.
Nov 13 2014
parent "Marc =?UTF-8?B?U2Now7x0eiI=?= <schuetzm gmx.net> writes:
On Thursday, 13 November 2014 at 10:44:38 UTC, Kagamin wrote:
 Hmm... now that I think of it, base64 is a format used for data 
 transfer, so it's unlikely to come from a trusted source.
That doesn't matter. A user still has to make sure the range isn't `empty` before calling `popFront()`, and that's all that line enforces. Thus, it should be an assert().
Nov 13 2014
prev sibling parent reply Piotr Szturmaj <bncrbme jadamspam.pl> writes:
W dniu 2014-11-11 o 23:38, Dmitry Olshansky pisze:
 gchunt is a tool is to help D developers identify and keep in check the
 usage of GC in their projects.

 So far it just postprocesses D compiler's -vgc output into a nice Wiki
 table. Results looks like this (Phobos):
 http://wiki.dlang.org/Stuff_in_Phobos_That_Generates_Garbage#Labeled_data
Nice :) I think I found a -vgc bug: https://github.com/D-Programming-Language/phobos/blob/271c771a57764dcc511ca12ae91d490872d9b 00/std/array.d#L419 - this line doesn't allocate, unlike the one below.
Nov 20 2014
parent Dmitry Olshansky <dmitry.olsh gmail.com> writes:
21-Nov-2014 05:18, Piotr Szturmaj пишет:
 W dniu 2014-11-11 o 23:38, Dmitry Olshansky pisze:
 gchunt is a tool is to help D developers identify and keep in check the
 usage of GC in their projects.

 So far it just postprocesses D compiler's -vgc output into a nice Wiki
 table. Results looks like this (Phobos):
 http://wiki.dlang.org/Stuff_in_Phobos_That_Generates_Garbage#Labeled_data
Nice :) I think I found a -vgc bug: https://github.com/D-Programming-Language/phobos/blob/271c771a57764dcc511ca12ae91d490872d9b500/std/array.d#L419 - this line doesn't allocate, unlike the one below.
Can you reduce and file it? Thanks! -- Dmitry Olshansky
Nov 21 2014