digitalmars.D.announce - tool to 'prettify' dmd profiler logs
- Lutger (9/9) Aug 08 2007 I have this crappy yet functioning tool to make html files out of dmd's
- Brad Roberts (6/16) Aug 08 2007 (channeling Walter)
- Lutger (3/10) Aug 08 2007 Ok, will do. I don't think this is as much of a project to put it in
- Brad Roberts (2/14) Aug 08 2007 Simple projects have a habit growing beyond their original scope. :)
- Walter Bright (3/8) Aug 10 2007 I agree. I wrote obj2asm originally as a quick hack. It has grown into
- BCS (3/24) Aug 08 2007 their's always scrapple.
- Extrawurst (8/17) Aug 09 2007 i like it. i never really used the D profiler cause i didn't understand
- Lutger (4/9) Aug 09 2007 It's slow, but that's too much. The cause is bad use of regexes, I'll
- Bill Baxter (16/28) Aug 09 2007 Reading from trace.log and writing to profile.d
- Walter Bright (3/13) Aug 10 2007 The weird names are the result of the compiler trying to reduce the
- Lutger (9/30) Aug 11 2007 Thanks for mentioning. I have updated this random tarball with some
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
Aug 08 2007
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.
Aug 08 2007
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.
Aug 08 2007
Lutger wrote:Brad Roberts wrote:Simple projects have a habit growing beyond their original scope. :)(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.
Aug 08 2007
Brad Roberts wrote:Lutger wrote:I agree. I wrote obj2asm originally as a quick hack. It has grown into quite a full featured program (but internally it's still an awful mess).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. :)
Aug 10 2007
Reply to Brad,On Thu, 9 Aug 2007, Lutger wrote:their's always scrapple. http://www.dsource.org/projects/scrappleI 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.
Aug 08 2007
BCS wrote:their's always scrapple. http://www.dsource.org/projects/scrappleMaybe 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.
Aug 09 2007
Reply to Lutger,BCS wrote:shure, I've already got tinyjpg.their's always scrapple. http://www.dsource.org/projects/scrappleMaybe 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.
Aug 09 2007
Reply to BCS,Reply to Lutger,If you need access just send me a dsource usernameBCS wrote:shure, I've already got tinyjpg.their's always scrapple. http://www.dsource.org/projects/scrappleMaybe 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.
Aug 11 2007
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
Aug 09 2007
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.
Aug 09 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.zipI tried it but here's what I got:ptrace -t=profile.dReading 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
Aug 09 2007
Bill Baxter wrote: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.The weird names are the result of the compiler trying to reduce the length of them so they'll fit in the obj file format.
Aug 10 2007
Bill Baxter wrote: > 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. --bbThanks for mentioning. I have updated this random tarball with some fixes and other improvements, performance should also be ok now :) http://lutger.ifastnet.com/ptrace/ptrace_win.zip If you come across such a problem again, if it's possible for you to send me your trace.log that would be really helpful: lutger dot blijdestijn at gmail dot com When I get it in dsource, I'll make it a bit nicer.
Aug 11 2007