【问题标题】:mini-profiler drop some stepsmini-profiler 删除一些步骤
【发布时间】:2013-03-21 17:45:51
【问题描述】:

我开始在我的 ASP MVC 4 Web 应用程序上使用 Stackoverflow MiniProfiler。 我只在 BeginRequest 和 EndRequest 中分别放置了 Start 和 Stop 调用。 我在一项操作中添加了一些步骤,如下所示:

private ActionResult MyAction(string id)
{
  using (MiniProfiler.Current.Step("GatherReportItems")) {
    ...
  }

  using (MiniProfiler.Current.Step("BuildReportViewModel")) {
    ...
  }

  using (MiniProfiler.Current.Step("AddingExtraInfo")) {
    ...
  }
}

问题在于,在对该操作的第一个请求中,我可以看到所有 3 个步骤,在任何进一步的请求中,我只看到第一步,而看不到其他任何步骤。

当我调试我的应用程序时,我可以在 MiniProfiler.Current -> Head -> Children 中看到所有 3 个步骤都在那里。在客户端显示中(点击计时框后),我只能看到部分步骤。

【问题讨论】:

  • 是否有可能客户端不显示这些步骤,因为它们非常短,2 和 3 毫秒?

标签: asp.net-mvc mvc-mini-profiler


【解决方案1】:

我现在注意到在分析详细信息弹出窗口底部有一个小链接名称 show trivial,它添加了非常短的时间

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-06-30
    • 2012-07-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多