Integrated code formatter

H. S. Teoh hsteoh at quickfur.ath.cx
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:

	https://issues.dlang.org/show_bug.cgi?id=14892#c1

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
(https://issues.dlang.org/show_bug.cgi?id=19601). Added a note there
also re: possible fixes.


T

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


More information about the Digitalmars-d mailing list