【问题标题】:How to get dotTrace ConsoleProfiler to collect snapshots?如何让 dotTrace ConsoleProfiler 收集快照?
【发布时间】:2016-05-05 13:59:58
【问题描述】:

我正在一个应用程序上运行 dotTrace 的 ConsoleProfiler (dotTrace doc) 并不断收到一条消息:

"Profiling 在 60.906 秒内成功完成

没有收集任何快照”。

我错过了什么?

控制台输出:

C:\JetBrainsCLT>ConsoleProfiler.exe dotTrace_Config.xml snapshot.dtp
Console Profiler 2016.1 build 105.0.20160414.155338 Copyright (C) 2011-2015 JetBrains s.r.o.

...

Profiling is successfully finished in 60.906 seconds
No snapshots have been collected

dotTrace_Config.xml:

<root>
  <HostParameters type="LocalHostParameters" />
  <Argument type="StandaloneArgument">
    <Arguments IsNull="False">
    </Arguments>
    <FileName>C:\Sourcecode\Project\bin\Debug\Test.exe</FileName>
    <WorkingDirectory>C:\Sourcecode\Project\bin\Debug</WorkingDirectory>
    <Scope>
      <ProcessFilters />
    </Scope>
  </Argument>
  <Info type="PerformanceInfo">
    <MeasureType>Sampling</MeasureType>
    <MeterKind>Rdtsc</MeterKind>
    <InjectInfo>
      <SymbolSearch>
        <SearchPaths />
      </SymbolSearch>
      <Scope>
        <PatternFilters />
        <DenyAttributeFilters />
      </Scope>
    </InjectInfo>
  </Info>
  <CoreOptions type="CoreOptions">
    <CoreTempPath IsNull="False">
    </CoreTempPath>
  </CoreOptions>
  <HostOptions type="HostOptions">
    <HostTempPath IsNull="False">
    </HostTempPath>
  </HostOptions>
</root>

【问题讨论】:

    标签: .net dottrace


    【解决方案1】:

    根据文档,您应该启动此命令行:

    ConsoleProfiler.exe xmlfile <path_to_config> --save-to=<path_to_snapshot>
    

    【讨论】:

      【解决方案2】:

      实际上,所描述的行为可能是由于分析进程的意外终止(有人杀死了进程、未处理的异常等)。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2018-12-04
        • 1970-01-01
        • 2015-10-23
        • 1970-01-01
        • 2020-03-01
        • 1970-01-01
        • 2021-07-12
        相关资源
        最近更新 更多