June 20, 2020 General » Re: Tracing allocations with "new" in dmd | |||
|---|---|---|---|
| |||
Yes, instrumentation to be inserted. | |||
June 19, 2020 General » Re: Tracing allocations with "new" in dmd | |||
|---|---|---|---|
| |||
Thank you! Just to clarify: this is advice on where to insert my own tracing... | |||
June 19, 2020 General » Re: Tracing allocations with "new" in dmd | |||
|---|---|---|---|
| |||
https://issues.dlang.org/show_bug.cgi?id=20960 | |||
June 20, 2020 Issues » [Issue 20960] New: -profile=gc does not track class objects allocated with new | |||
|---|---|---|---|
| |||
...to show that only array allocations are traced, but not allocations of individual objects. dmd... | |||
June 19, 2020 General » Re: Tracing allocations with "new" in dmd | |||
|---|---|---|---|
| |||
All (?) `new` allocations in DMD are redirected to https://github.com/dlang/dmd/blob/b6b0c0f41a476c4eaa88ba106fb4de1175d40440... | |||
June 19, 2020 General » Re: Tracing allocations with "new" in dmd | |||
|---|---|---|---|
| |||
Please post to bugzilla. | |||
June 19, 2020 General » Re: Tracing allocations with "new" in dmd | |||
|---|---|---|---|
| |||
No, it does not save type information. It generates a stack trace for every allocation... | |||
June 19, 2020 General » Re: Tracing allocations with "new" in dmd | |||
|---|---|---|---|
| |||
Thanks. Does it provide type information about the objects allocated? | |||
June 19, 2020 General » Re: Tracing allocations with "new" in dmd | |||
|---|---|---|---|
| |||
You can also use heaptrack for tracing allocations under Linux. It uses LD_PRELOAD to... | |||
June 19, 2020 General » Re: Tracing allocations with "new" in dmd | |||
|---|---|---|---|
| |||
...seems to show that only array allocations are traced, but not allocations of individual objects. | |||
Copyright © 1999-2021 by the D Language Foundation