www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - D Profile Viewer

reply Andrew <atrotman ebay.com> writes:
Hi

I wrote a program to turn the non-human-readable trace.log into 
an interactive HTML file that can be used to help profile a D 
program.

Its here: https://bitbucket.org/andrewtrotman/d-profile-viewer

There's also a readme that (hopefully) explains how to use it.

Please let me know if you find any bugs.

Andrew.
Mar 24 2016
next sibling parent Rob Rau <rfr2 mac.com> writes:
On Thursday, 24 March 2016 at 20:34:07 UTC, Andrew wrote:
 Hi

 I wrote a program to turn the non-human-readable trace.log into 
 an interactive HTML file that can be used to help profile a D 
 program.

 Its here: https://bitbucket.org/andrewtrotman/d-profile-viewer

 There's also a readme that (hopefully) explains how to use it.

 Please let me know if you find any bugs.

 Andrew.
This looks wonderful! I was looking for something exactly like this the other day. -Rob
Mar 24 2016
prev sibling next sibling parent reply Marco Leise <Marco.Leise gmx.de> writes:
Am Thu, 24 Mar 2016 20:34:07 +0000
schrieb Andrew <atrotman ebay.com>:

 Hi
 
 I wrote a program to turn the non-human-readable trace.log into 
 an interactive HTML file that can be used to help profile a D 
 program.
 
 Its here: https://bitbucket.org/andrewtrotman/d-profile-viewer
 
 There's also a readme that (hopefully) explains how to use it.
 
 Please let me know if you find any bugs.
 
 Andrew.
Sexy pie charts! Although I'm using OProfile since it works without instrumenting the code. -- Marco
Mar 24 2016
parent Andrew <atrotman ebay.com> writes:
On Thursday, 24 March 2016 at 21:45:20 UTC, Marco Leise wrote:

 Sexy pie charts! Although I'm using OProfile since it works 
 without instrumenting the code.
The pie charts are courtesy of Google Charts.
Mar 24 2016
prev sibling next sibling parent =?UTF-8?Q?Ali_=c3=87ehreli?= <acehreli yahoo.com> writes:
On 03/24/2016 01:34 PM, Andrew wrote:
 Hi

 I wrote a program to turn the non-human-readable trace.log into an
 interactive HTML file that can be used to help profile a D program.

 Its here: https://bitbucket.org/andrewtrotman/d-profile-viewer

 There's also a readme that (hopefully) explains how to use it.

 Please let me know if you find any bugs.

 Andrew.
This is awesome! :D In case others have missed it, this project is open-sourced by a prominent company:
 Copyright (c) 2015-2016 eBay Software Foundation
Ali
Mar 24 2016
prev sibling next sibling parent Mike Parker <aldacron gmail.com> writes:
On Thursday, 24 March 2016 at 20:34:07 UTC, Andrew wrote:
 Hi

 I wrote a program to turn the non-human-readable trace.log into 
 an interactive HTML file that can be used to help profile a D 
 program.

 Its here: https://bitbucket.org/andrewtrotman/d-profile-viewer

 There's also a readme that (hopefully) explains how to use it.

 Please let me know if you find any bugs.

 Andrew.
Awesome!
Mar 24 2016
prev sibling next sibling parent ANtlord <antlord92 gmail.com> writes:
On Thursday, 24 March 2016 at 20:34:07 UTC, Andrew wrote:
 Hi

 I wrote a program to turn the non-human-readable trace.log into 
 an interactive HTML file that can be used to help profile a D 
 program.

 Its here: https://bitbucket.org/andrewtrotman/d-profile-viewer

 There's also a readme that (hopefully) explains how to use it.

 Please let me know if you find any bugs.

 Andrew.
It is really cool. You rock!
Mar 25 2016
prev sibling next sibling parent jmh530 <john.michael.hall gmail.com> writes:
On Thursday, 24 March 2016 at 20:34:07 UTC, Andrew wrote:
 I wrote a program to turn the non-human-readable trace.log into 
 an interactive HTML file that can be used to help profile a D 
 program.
Cool.
Mar 25 2016
prev sibling next sibling parent Steven Schveighoffer <schveiguy yahoo.com> writes:
On 3/24/16 4:34 PM, Andrew wrote:
 Hi

 I wrote a program to turn the non-human-readable trace.log into an
 interactive HTML file that can be used to help profile a D program.

 Its here: https://bitbucket.org/andrewtrotman/d-profile-viewer

 There's also a readme that (hopefully) explains how to use it.

 Please let me know if you find any bugs.

 Andrew.
Hey Andrew, I remember you showing this at the D meetup last year. Very cool, glad you could get it open-sourced! -Steve
Mar 25 2016
prev sibling next sibling parent reply Jack Stouffer <jack jackstouffer.com> writes:
On Thursday, 24 March 2016 at 20:34:07 UTC, Andrew wrote:
 Hi

 I wrote a program to turn the non-human-readable trace.log into 
 an interactive HTML file that can be used to help profile a D 
 program.

 Its here: https://bitbucket.org/andrewtrotman/d-profile-viewer

 There's also a readme that (hopefully) explains how to use it.

 Please let me know if you find any bugs.

 Andrew.
Awesome work. If I could make one suggestion, this should be added to dub as an executable, so I can do dub fetch d-profile-viewer dub run d-profile-viewer
Mar 25 2016
parent reply Andrew <atrotman ebay.com> writes:
On Saturday, 26 March 2016 at 03:41:14 UTC, Jack Stouffer wrote:
 If I could make one suggestion, this should be added to dub as 
 an executable, so I can do

 dub fetch d-profile-viewer
 dub run d-profile-viewer
Done!
Mar 28 2016
parent Jack Stouffer <jack jackstouffer.com> writes:
On Monday, 28 March 2016 at 23:43:51 UTC, Andrew wrote:
 On Saturday, 26 March 2016 at 03:41:14 UTC, Jack Stouffer wrote:
 If I could make one suggestion, this should be added to dub as 
 an executable, so I can do

 dub fetch d-profile-viewer
 dub run d-profile-viewer
Done!
Works like a charm :)
Mar 28 2016
prev sibling next sibling parent reply Andrew Trotman <andrew trotman.com> writes:
I've updated the d-profile-viewer.  There are three changes:
    Works on Windows (simple '\r' or '\n' bug fixed)
    Works with smaller numbers (division by integers -> divide by 
doubles)
    Uses HTML entities rather than UTF-8 (coz CodeWrite doesn't 
know UTF-8)

Its on dub: dub fetch d-profile-viewer
Its on bitbucket: 
https://bitbucket.org/andrewtrotman/d-profile-viewer

Thanks go to those who identified the bugs.

Andrew.
May 15 2016
parent Andrew <andrew cs.otago.ac.nz> writes:
I've updated the d-profile-viewer.  It now supports identifiers 
that are not mangles - are these 'extern "C"'?

Its on dub:
    dub fetch d-profile-viewer
Its on bitbucket:
    https://bitbucket.org/andrewtrotman/d-profile-viewer

Thanks go to those who identified the bugs.

Andrew.
Jun 01 2016
prev sibling next sibling parent Artem Tarasov <lomereiter gmail.com> writes:
On Thursday, 24 March 2016 at 20:34:07 UTC, Andrew wrote:
 Hi

 I wrote a program to turn the non-human-readable trace.log into 
 an interactive HTML file that can be used to help profile a D 
 program.

 Its here: https://bitbucket.org/andrewtrotman/d-profile-viewer

 There's also a readme that (hopefully) explains how to use it.

 Please let me know if you find any bugs.

 Andrew.
Hi, The html is nice, but I personally find KCacheGrind the best tool for the purpose. I guess it shouldn't be too hard to add support for the corresponding format (http://valgrind.org/docs/manual/cl-format.html) as it's done in pyprof2calltree, for example.
May 16 2016
prev sibling parent =?UTF-8?B?Tm9yZGzDtnc=?= <per.nordlow gmail.com> writes:
On Thursday, 24 March 2016 at 20:34:07 UTC, Andrew wrote:
 Its here: https://bitbucket.org/andrewtrotman/d-profile-viewer
 Please let me know if you find any bugs.
It's better to use backticks to produce raw string literals for all the quoted code. Then you don't have to backslash all the double-quotes in the HTML and JS here: https://bitbucket.org/andrewtrotman/d-profile-viewer/src/b8292aad50dab5ceca6a9067f0d867f89d9c0d20/source/app.d?at=default&fileviewer=file-view-default The for instance " <script type=\"text/javascript\" src=\"https://www.google.com/jsapi\"></script> " becomes ` <script type="text/javascript" src="https://www.google.com/jsapi"></script> ` Thanks!
Jun 02 2016