Re: Profiling and inlining

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



ti@xxxxxxxxxxx wrote:

I've done both. Though mostly instrumetation-based, since I was
interested in measures for which specific lines in a few big functions
were most costly.

Instrumentation can't reliably monitor time performance, since it
changes the code. For example, it typically prevents inlining. Usually,
a sampling profiler is needed, unless you're trying to track down a
problem that shows a method is being called more often than you think it
should be.

Quantify does this easily, and I don't think VS
2005's profiler does it.

VS 2005 Team Edition (I last looked in Beta 2, I only have Pro) appears
to have two profilers, one for instrumentation (best for memory
profiling) and another for sampling (best for time profiling).

-- Barry

--
http://barrkel.blogspot.com/
.



Relevant Pages

  • Re: gprof bug on Mac OS X?
    ... Apple's Shark profiler works well ... >> and I personally find it to be greatly superior to any other profiler I've ... although it is a sampling profiler rather than an instrumented ... instrumentation would skew the results less overall. ...
    (comp.sys.mac.programmer.misc)
  • Re: Profiling and inlining
    ... I'll proceed with the sampling in VSTE. ... The Profiler ... Instrumentation can't reliably monitor time performance, ...
    (microsoft.public.dotnet.framework.performance)
  • Re: [profiling] different results with different profiling methods
    ... should trust. ... Two different methods of instrumentation will give two ... The more invasive a profiler is the more it will perturb ... Making sense of the output from profilers can be something of a black art - ...
    (comp.lang.java.programmer)
  • Sampling Profiler
    ... Here is a sampling profiler I wrote a couple weeks ago ... The benefits over instrumenting profilers are that you can get ... To use it, you just have to generate debug info (TD32, MAP file, ... JDBG or ZJDBG) and run the compiled EXE with the profiler, ...
    (borland.public.delphi.language.basm)
  • Optimizing the Procedure Parm
    ... through the Sampling Profiler is this: ... I've typically loathed the idea of procedure parms because things have ... Now what is being indicated by the profiler is that in the case of the ... statements to evaluate the operative line each time MyCompFunc is ...
    (borland.public.delphi.language.basm)