Integrated code formatter

H. S. Teoh hsteoh at
Tue Jan 18 15:37:42 UTC 2022

On Mon, Jan 17, 2022 at 05:23:26PM -0800, H. S. Teoh via Digitalmars-d wrote:
> I'll take a look at the code now to see if there's anything easily
> salvageable...  but at this point I'm ready to propose pulling the
> trigger on -profile=gc completely.  (Based on how I suspect it works,
> I'm expecting that it would not be easy to implement any useful output
> for allocations via druntime functions -- at best you'd just get some
> obscure file/line number inside druntime code which would be of no
> help locating where in *your* code the allocation happened.)

Outlined a few possible approaches to fix this here:

I'm not sure I have the compiler chops to actually fix this myself,
though.  This is a little beyond my level of familiarity with dmd code.
Would be nice if somebody picked this up.

Also, druntime/src/rt/profilegc.d seriously needs to be fixed to
*always* write to the file profilegc.txt when compiled with -profile=gc
( Added a note there
also re: possible fixes.


It is impossible to make anything foolproof because fools are so ingenious. -- Sammy

More information about the Digitalmars-d mailing list