September 08, 2016
On Thursday, 8 September 2016 at 17:15:54 UTC, safety0ff wrote:
> On Thursday, 8 September 2016 at 17:03:30 UTC, Stefan Koch wrote:
>>
>> I thought of the same thing a while back.
>> However I have had the time to decipher the gprof data-format yet.
>> Is there another profile-format for decent visualization tools exist ?
>
> I was just using that as an example of what we might want to output as text.
> e.g. https://sourceware.org/binutils/docs/gprof/Flat-Profile.html
>
> I wasn't saying that we should mimic gmon.out file format, I don't think that buys us much.

I disagree anything which allows to use existing visualization and correlation will be a major win.
If I am going to write a profiler it should have pretty charts.
Also the gnu guys probably put a lot thought into their format.
September 09, 2016
Am Tue, 06 Sep 2016 05:02:54 +0000
schrieb timepp <tongjunhui@live.cn>:

> On Sunday, 4 September 2016 at 04:24:34 UTC, rikki cattermole wrote:
> > void writeln(T...)(T args) {
> > 	if (__ctfe){
> > 		debug {
> > 			__ctfeWriteln(args);
> > 		}
> > 	} else {
> > 		// ... current implementation
> > 	}
> > }
> >
> > Are you sureeeee?
> any usage example?
> 
> consider a normal usage:
> writeln("done.");
> 
> I just want a runtime output. how can I tell the compiler not to print "done." at compile time?

If you actually call a function during compile-time that uses writeln and want it to be silent you would write:

  if (!__ctfe) writeln("done.");

-- 
Marco

1 2 3 4
Next ›   Last »