digitalmars.D.learn - Current size of GC memory
- Namespace (1/1) Nov 03 2013 Is there a way to find out how much memory the GC used currently?
- Namespace (2/4) Nov 03 2013 Does not seem to be possible. Would have been nice.
- Rainer Schuetze (3/6) Nov 03 2013 There is an "unofficial" function gc_stats here:
- Namespace (2/10) Nov 04 2013 And how can I use it? import gc.proxy; doesn't work.
-
Rainer Schuetze
(3/16)
Nov 04 2013
You need to add
/src/druntime/src to the import search... - Sean Kelly (2/7) Nov 05 2013 Or simply declare the extern (C) function in your code.
- Namespace (3/13) Nov 05 2013 And what is with the return type? It's a struct. You must import
- Sean Kelly (7/9) Nov 05 2013 You don't have to import it. The layout of the struct isn't
Is there a way to find out how much memory the GC used currently?
Nov 03 2013
On Sunday, 3 November 2013 at 13:05:08 UTC, Namespace wrote:Is there a way to find out how much memory the GC used currently?Does not seem to be possible. Would have been nice.
Nov 03 2013
On 03.11.2013 19:53, Namespace wrote:On Sunday, 3 November 2013 at 13:05:08 UTC, Namespace wrote:There is an "unofficial" function gc_stats here: https://github.com/D-Programming-Language/druntime/blob/master/src/gc/proxy.d#L276Is there a way to find out how much memory the GC used currently?Does not seem to be possible. Would have been nice.
Nov 03 2013
On Monday, 4 November 2013 at 06:38:41 UTC, Rainer Schuetze wrote:On 03.11.2013 19:53, Namespace wrote:And how can I use it? import gc.proxy; doesn't work.On Sunday, 3 November 2013 at 13:05:08 UTC, Namespace wrote:There is an "unofficial" function gc_stats here: https://github.com/D-Programming-Language/druntime/blob/master/src/gc/proxy.d#L276Is there a way to find out how much memory the GC used currently?Does not seem to be possible. Would have been nice.
Nov 04 2013
On 04.11.2013 11:23, Namespace wrote:On Monday, 4 November 2013 at 06:38:41 UTC, Rainer Schuetze wrote:You need to add <dmd-install-path>/src/druntime/src to the import search paths.On 03.11.2013 19:53, Namespace wrote:And how can I use it? import gc.proxy; doesn't work.On Sunday, 3 November 2013 at 13:05:08 UTC, Namespace wrote:There is an "unofficial" function gc_stats here: https://github.com/D-Programming-Language/druntime/blob/master/src/gc/proxy.d#L276Is there a way to find out how much memory the GC used currently?Does not seem to be possible. Would have been nice.
Nov 04 2013
On Monday, 4 November 2013 at 22:25:14 UTC, Rainer Schuetze wrote:On 04.11.2013 11:23, Namespace wrote:Or simply declare the extern (C) function in your code.And how can I use it? import gc.proxy; doesn't work.You need to add <dmd-install-path>/src/druntime/src to the import search paths.
Nov 05 2013
On Tuesday, 5 November 2013 at 19:49:06 UTC, Sean Kelly wrote:On Monday, 4 November 2013 at 22:25:14 UTC, Rainer Schuetze wrote:And what is with the return type? It's a struct. You must import it.On 04.11.2013 11:23, Namespace wrote:Or simply declare the extern (C) function in your code.And how can I use it? import gc.proxy; doesn't work.You need to add <dmd-install-path>/src/druntime/src to the import search paths.
Nov 05 2013
On Tuesday, 5 November 2013 at 20:19:03 UTC, Namespace wrote:And what is with the return type? It's a struct. You must import it.You don't have to import it. The layout of the struct isn't going to change any time soon. Just copy/paste the definition into your code. Or import it if you want. It's just that the original definition of this stuff is in a portion of Druntime that was never intended to be published to a location where the module could be imported by users.
Nov 05 2013