我正在一个应用程序上运行dotTrace的ConsoleProfiler(dotTrace-doc),并不断收到一条消息:
"分析在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:SourcecodeProjectbinDebugTest.exe</FileName>
<WorkingDirectory>C:SourcecodeProjectbinDebug</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>
根据文档,您应该启动以下命令行:
ConsoleProfiler.exe xmlfile <path_to_config> --save-to=<path_to_snapshot>
实际上,所描述的行为可能是由所分析进程的意外终止(有人杀死了进程、未处理的异常等)引起的。