mishrsud / mvc-mini-profiler

Automatically exported from code.google.com/p/mvc-mini-profiler
0 stars 0 forks source link

Parent step duration doesn't equal sum of child step durations #17

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
My thought is that parent step durations would equal or be greater than the sum 
of child step durations.  The attached screenshot shows this is not the case.

My code looks like: 

using (MiniProfiler.Current.Step("Parse liquid tokens for page"))
{
 using (var transaction = _pageService.BeginTransaction())
 {
  using (MiniProfiler.Current.Step("Parse liquid tokens for page - inner"))
  {
   pageText = _tokenService.ReplaceTokens(CurrentSite, page, tokenModel);
  }
  transaction.Commit();
 }
}

Original issue reported on code.google.com by j...@biacreations.com on 10 Jun 2011 at 9:27

Attachments:

GoogleCodeExporter commented 8 years ago
The duration shown is for *only* that chunk of code, this is intentional.  We 
want the primary view to be a granular as you're specified, so you can tell how 
much time a function is taking in itself (not including child steps) without 
subtracting.

There is a "show time with children" option at the bottom (cut off in the 
screen shot) for showing a column that includes child execution time, which has 
the timing style you're talking about. 

You can also default that column to shown with the optional parameter in 
.RenderIncludes(), like this: 
@MiniProfiler.RenderIncludes(showTimeWithChildren: true)

Original comment by nrcraver on 10 Jun 2011 at 11:37

GoogleCodeExporter commented 8 years ago
Makes sense, thanks for the description.

Original comment by j...@biacreations.com on 11 Jun 2011 at 12:10