我在一个应用程序上运行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 collecteddotTrace_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>发布于 2018-11-20 18:05:38
根据文档,您应该启动此命令行:
ConsoleProfiler.exe xmlfile <path_to_config> --save-to=<path_to_snapshot>发布于 2018-11-22 02:43:55
实际上,所描述的行为可能是由分析进程的意外终止(有人杀死了进程,未处理的异常等)引起的。
https://stackoverflow.com/questions/37052611
复制相似问题