www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.ldc - how to do Heap profiling using LDC2?

reply mw <mingwu gmail.com> writes:
Hi,

I tried this:

```
$ ldmd2 test.d  -profile=gc
Warning: command-line option '-profile=gc' not yet supported by 
LDC.
```

and wondering how to do Heap profiling using LDC2?

Thanks.
Aug 20 2020
parent Guillaume Piolat <firstname.lastname gmail.com> writes:
On Thursday, 20 August 2020 at 20:29:02 UTC, mw wrote:
 Hi,

 I tried this:

 ```
 $ ldmd2 test.d  -profile=gc
 Warning: command-line option '-profile=gc' not yet supported by 
 LDC.
 ```

 and wondering how to do Heap profiling using LDC2?

 Thanks.
You may still use DMD since the heap profile will be very similar (barring some eventual D-specific optimizations).
Sep 01 2020