On 8/1/16 9:24 PM, Rufus Smith wrote:
Can one add code that executes before the GC and any memory is normally
allocated(even static) and after all of it was suppose to be released?

Of course! You just have to modify druntime :)

One thing you can do instead is compile without a D main function, and use C main, initialize the runtime manually. Then you can put your measurement code around the runtime initialization and termination.

See here: http://dlang.org/phobos/core_runtime.html#.rt_init

-Steve
  • prolog and epilog code Rufus Smith via Digitalmars-d-learn
    • Re: prolog and epilog co... Steven Schveighoffer via Digitalmars-d-learn
      • Re: prolog and epilo... Rufus Smith via Digitalmars-d-learn
        • Re: prolog and e... Adam D. Ruppe via Digitalmars-d-learn
          • Re: prolog a... Rufus Smith via Digitalmars-d-learn
            • Re: pro... Adam D. Ruppe via Digitalmars-d-learn
              • Re:... Adam D. Ruppe via Digitalmars-d-learn
                • ... Steven Schveighoffer via Digitalmars-d-learn
            • Re: pro... Steven Schveighoffer via Digitalmars-d-learn
              • Re:... Rufus Smith via Digitalmars-d-learn
                • ... Steven Schveighoffer via Digitalmars-d-learn
                • ... Rufus Smith via Digitalmars-d-learn

Reply via email to