Re: Profiling and inlining

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



Thanks for the advice. I didn't realize that instrumentation was
unreliable for timing. I'll proceed with the sampling in VSTE.

In that context, do you know of a good way to get a brakedown of which
statements in a big function are the time consuming ones? The Profiler
in VSTE will only tell me the time for the function itself.

Barry Kelly wrote:
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: [ANN]ProDelphi 18.3 released (runtime measurement)
    ... checkbox to make the AppServer demo run in single-threaded mode, ... sampling rate to 10.000 samples per second, set Profiler to start sampling ... AppServer, ...
    (borland.public.delphi.thirdpartytools.general)
  • Re: F1: How to sample a binary?
    ... I again tried several things and it appears impossible to get rid of the library call stack while sampling. ... On instrumentation it is better, as it only goes one level deep and tells me the name of the function. ... Sampling profile method collects data at intervals, ... Microsoft Online Community Support ...
    (microsoft.public.vsnet.general)
  • RE: F1: How to sample a binary?
    ... Sampling is a profile technique that involves taking snapshots of program ... Sampling collects less data than instrumentation so ... Microsoft Online Community Support ...
    (microsoft.public.vsnet.general)
  • 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)
  • Re: statistical vs deterministic profilers
    ... Lispworks has a statistical profiler, I don't know about Allegro ... statistics on individual functions, ... "sampling profiler", because instead of the profiler being forced by ...
    (comp.lang.lisp)