It looks like every run of whatever I compiled generate a profilegc.log file, that only contains : bytes allocated, type, function, file:line And that's it. Flag used to compile are -w -debug -gc -unittest . I'm using the .deb package on debian.
Can't reproduce this on my linux distribution. What version of debian are you using? On which of the flags does it depend? Why are you using -gc instead of -g btw?
Ping, any update on this?
I see it generated by the druntime unittests. I guess that hints at the problem: if you link to a shared phobos/druntime library, the latter contains rt.profilegc. It's static destructors will run at program termination and write the log file.
Ok first about the -gc SDC was already using it when I started working on it. Not sure what is the difference with -g and never investigated the question that much. I have debug infos, that is this most important. I'm using debian testing, and installed dmd via the .deb present on the download page. The setup is completely vanilla. I can provide you the versions of the softwares I'm using upon request. I'm also using D on a OSX machine and the problem does not happen, so it seems to be linux specific (or even debian/ubuntu specific ?). Rainer may have a point. I can do more testing over the weekend to find exactly what flags do or do not produce the file.
https://github.com/D-Programming-Language/druntime/pull/1364
Commits pushed to master at https://github.com/D-Programming-Language/druntime https://github.com/D-Programming-Language/druntime/commit/146469cf3e0781e9199e4ddd5d3f11cf99f684b9 fix Issue 14926 - Programs compiled using dmd 2.068 are generating dummy profilegc.log files https://github.com/D-Programming-Language/druntime/commit/5db735222f7751dfc7a4e4490906e1c89d667cc5 Merge pull request #1364 from WalterBright/fix14926 fix Issue 14926 - Programs compiled using dmd 2.068 are generating dummy profilegc.log files
Commit pushed to stable at https://github.com/D-Programming-Language/druntime https://github.com/D-Programming-Language/druntime/commit/281bf608c07b0acdfc5ff97e1699057896082155 Merge pull request #1364 from WalterBright/fix14926 fix Issue 14926 - Programs compiled using dmd 2.068 are generating dummy profilegc.log files
Commit pushed to master at https://github.com/D-Programming-Language/druntime https://github.com/D-Programming-Language/druntime/commit/281bf608c07b0acdfc5ff97e1699057896082155 Merge pull request #1364 from WalterBright/fix14926
Commits pushed to stable at https://github.com/D-Programming-Language/druntime https://github.com/D-Programming-Language/druntime/commit/146469cf3e0781e9199e4ddd5d3f11cf99f684b9 fix https://github.com/D-Programming-Language/druntime/commit/5db735222f7751dfc7a4e4490906e1c89d667cc5 Merge pull request #1364 from WalterBright/fix14926