Can compiler profile itself?

Stefan Koch via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Jan 25 04:49:05 PST 2017


On Tuesday, 24 January 2017 at 23:25:12 UTC, Profile Anaysis 
wrote:
> I am trying to compile some code and it takes around 6 seconds. 
> Even if I change one line in one module, it takes the same 
> time. There are about 20 different d modules.
>
> [...]

yes the compiler can be used to profile itself.
build it with make ENABLE_PROFILE=1

If your code is overly slow you are probably using recursive 
variaidic templates.


More information about the Digitalmars-d-learn mailing list