More granular performance profiling?

Don Clugston dac at nospam.com.au
Fri Mar 30 00:40:33 PDT 2007


Jarrett Billingsley wrote:
> I'd like to profile some code (the MiniD interpreter to be exact), but 
> the -profile flag for DMD only profiles down to the function level.  This 
> obviously doesn't help much when considering that the interpreter is 
> basically one big function with a while loop in it.
> 
> Short of splitting the interpreter function into several smaller functions 
> to profile it, is there any way to get more granular performance profiling? 
> A library or such? 
> 

In case you haven't already used it, -cov will give you hit counts for 
each line. (I find -cov to be the best debugging and profiling tool ever 
devised -- the unit test coverage aspect is a minor additional benefit 
<g>). Might not be what you need, though.


More information about the Digitalmars-d-learn mailing list