View mode: basic / threaded / horizontal-split · Log in · Help
August 09, 2007
tool to 'prettify' dmd profiler logs
I have this crappy yet functioning tool to make html files out of dmd's 
profiler output. Since somebody in another thread remarked that this 
output was unreadable, I thought it might be useful to share.

It works with the ddoc system, so it's possible to customize the end 
result.

source (Tango):
http://lutger.ifastnet.com/ptrace/ptrace.zip
source + windows binary:
http://lutger.ifastnet.com/ptrace/ptrace_win.zip
August 09, 2007
Re: tool to 'prettify' dmd profiler logs
On Thu, 9 Aug 2007, Lutger wrote:

> I have this crappy yet functioning tool to make html files out of dmd's
> profiler output. Since somebody in another thread remarked that this output
> was unreadable, I thought it might be useful to share.
> 
> It works with the ddoc system, so it's possible to customize the end result.
> 
> source (Tango):
> http://lutger.ifastnet.com/ptrace/ptrace.zip
> source + windows binary:
> http://lutger.ifastnet.com/ptrace/ptrace_win.zip

(channeling Walter)

A random tarball doesn't do a good job of describing itself.  How about 
adding an index.html there to give the app a better, more complete, home?  
Even better would be using dsource (or google's code thingy) to house the 
project where you can actually put it under source control, etc.
August 09, 2007
Re: tool to 'prettify' dmd profiler logs
Brad Roberts wrote:
> 
> (channeling Walter)
> 
> A random tarball doesn't do a good job of describing itself.  How about 
> adding an index.html there to give the app a better, more complete, home?  
> Even better would be using dsource (or google's code thingy) to house the 
> project where you can actually put it under source control, etc.

Ok, will do. I don't think this is as much of a project to put it in 
dsource, but some webpage would be better indeed.
August 09, 2007
Re: tool to 'prettify' dmd profiler logs
Lutger wrote:
> Brad Roberts wrote:
>>
>> (channeling Walter)
>>
>> A random tarball doesn't do a good job of describing itself.  How 
>> about adding an index.html there to give the app a better, more 
>> complete, home?  Even better would be using dsource (or google's code 
>> thingy) to house the project where you can actually put it under 
>> source control, etc.
> 
> Ok, will do. I don't think this is as much of a project to put it in 
> dsource, but some webpage would be better indeed.

Simple projects have a habit growing beyond their original scope. :)
August 09, 2007
Re: tool to 'prettify' dmd profiler logs
Reply to Brad,

> On Thu, 9 Aug 2007, Lutger wrote:
> 
>> I have this crappy yet functioning tool to make html files out of
>> dmd's profiler output. Since somebody in another thread remarked that
>> this output was unreadable, I thought it might be useful to share.
>> 
>> It works with the ddoc system, so it's possible to customize the end
>> result.
>> 
>> source (Tango):
>> http://lutger.ifastnet.com/ptrace/ptrace.zip
>> source + windows binary:
>> http://lutger.ifastnet.com/ptrace/ptrace_win.zip
> (channeling Walter)
> 
> A random tarball doesn't do a good job of describing itself.  How
> about adding an index.html there to give the app a better, more
> complete, home?  Even better would be using dsource (or google's code
> thingy) to house the project where you can actually put it under
> source control, etc.
> 

their's always scrapple.

http://www.dsource.org/projects/scrapple
August 09, 2007
Re: tool to 'prettify' dmd profiler logs
i like it. i never really used the D profiler cause i didn't understand 
the output.
just two points:
1) ptrace is extremly slow isn't it ? i hope its not just my machine, 
but for a 1mb trace.log it took minutes to parse.
2) could you also include a legend or a table header in the call-graph 
section to explain the numbers behind every function ?


Lutger schrieb:
> I have this crappy yet functioning tool to make html files out of 
> dmd's profiler output. Since somebody in another thread remarked that 
> this output was unreadable, I thought it might be useful to share.
>
> It works with the ddoc system, so it's possible to customize the end 
> result.
>
> source (Tango):
> http://lutger.ifastnet.com/ptrace/ptrace.zip
> source + windows binary:
> http://lutger.ifastnet.com/ptrace/ptrace_win.zip
August 09, 2007
Re: tool to 'prettify' dmd profiler logs
Extrawurst wrote:
> just two points:
> 1) ptrace is extremly slow isn't it ? i hope its not just my machine, 
> but for a 1mb trace.log it took minutes to parse.

It's slow, but that's too much. The cause is bad use of regexes, I'll 
fix it.

> 2) could you also include a legend or a table header in the call-graph 
> section to explain the numbers behind every function ?

Sure, I will make some improvements.
August 09, 2007
Re: tool to 'prettify' dmd profiler logs
BCS wrote:
> their's always scrapple.
> 
> http://www.dsource.org/projects/scrapple
> 
> 

Maybe that's a good idea. About scrapple, will you consider lodepng for 
inclusion? I think it's scope is too small for a project of it's own, 
but moving it to dsource would be nice. Thanks.
August 09, 2007
Re: tool to 'prettify' dmd profiler logs
Reply to Lutger,

> BCS wrote:
> 
>> their's always scrapple.
>> 
>> http://www.dsource.org/projects/scrapple
>> 
> Maybe that's a good idea. About scrapple, will you consider lodepng
> for inclusion? I think it's scope is too small for a project of it's
> own, but moving it to dsource would be nice. Thanks.
> 

shure, I've already got tinyjpg.
August 10, 2007
Re: tool to 'prettify' dmd profiler logs
Lutger wrote:
> I have this crappy yet functioning tool to make html files out of dmd's 
> profiler output. Since somebody in another thread remarked that this 
> output was unreadable, I thought it might be useful to share.
> 
> It works with the ddoc system, so it's possible to customize the end 
> result.
> 
> source (Tango):
> http://lutger.ifastnet.com/ptrace/ptrace.zip
> source + windows binary:
> http://lutger.ifastnet.com/ptrace/ptrace_win.zip


I tried it but here's what I got:

>ptrace -t=profile.d
Reading from trace.log and writing to profile.d
tango.core.Exception.IllegalArgumentException: Integer.toInt :: numeric 
overflow


That was what finally came out after a long time waiting.

I suspect the reason might be these weird lines I'm getting in my profile:

------------------
		_D8rbftools3api475__T18Kernel_Eva䳡椀渀䘀 
甀渀吀匀耀꤀㔀㠀耀ꠀ 䬀䈀愀猀椀挀䘀吀漀爀匀㌀ 
㘀耀ꄀ㈀㄀爀㈀氀漀最爀开攀耀쐀elemVh2Z€З€Ṫ63€× 
1KDDeriv€ุ40€Ø5€ظdd€Ŗöꖀ耀ᰀ耄ﴀᇿ됀8€Ü3Āﴀ烿y51傶耀଀渀漀洀椀愀氀Ѐ 
䀀ŠVE€©9€ŖOr€Ú1Z€
------------------

There are quite a few lines like that in the trace.log dmd is spitting out.

--bb
« First   ‹ Prev
1 2
Top | Discussion index | About this forum | D home