profiling with -profile

Minas Mina minas_mina1990 at hotmail.co.uk
Thu Jul 26 10:04:45 PDT 2012


I have this code:

import std.stdio;

void main()
{
	f();
	g();
}

void f()
{
	writeln("f()");
}

void g()
{
	writeln("g()");
}

I compile with the command:

dmd test.d -profile

Then I execute it. It prints:
f()
g()

as expected. Shouldn't it print profiling information as well?


More information about the Digitalmars-d-learn mailing list