How do you profile your apps under windows?

Alexandr Druzhinin drug2004 at bk.ru
Sun Aug 11 03:07:03 PDT 2013


10.08.2013 00:59, H. S. Teoh пишет:
> On Fri, Aug 09, 2013 at 11:39:41PM +0700, Alexandr Druzhinin wrote:
>> -profile switch doesn't work for me (nothing happens), so I'm
>> curious how to profile?
>
> You've to run your program first. It will create a bunch of extra files
> in your current working directory that contains the profile results.
>
>
> T
>
Of course I run the program first. When the program was simpler it 
worked fine. But at the some moment I tried to profile it again but 
there were no profile results generated. More over now my app just hangs 
up after finishing (my code) execution somewhere in druntime kingdom.
To try gprof I installed ubuntu 12.04 (newer versions didn't install 
from flushdisk) and also installed gdc-4.8 ("native" gdc-4.6 doesn't 
compile my code) from a package (compiling gdc from source fails, 
playing with configure options just wasted several hours of my spare 
time) and even build my app and became exciting that now I would get 
opportunity to profile using gprof but my app just crashed with dumping 
without any informative message. I tried to use gdb (I'm a noob with it) 
and found that it crashed somewhere about exit from static ctors - I'm 
not sure I interpreted gdb output correctly.
So now I have a choice - to wait when good and smart guys solve these 
problems either with dmd -profile or gdc code generating and try to work 
around myself - probably gdc codegen isn't the real reason. Here I'm 
sitting and making decision what to do further...
But nevertheless thanks to all who made the universe more beautiful and 
handy by means of D language and its infrastructure! Thank you guys!


More information about the Digitalmars-d-learn mailing list