如何让dotTrace ConsoleProfiler收集快照?

时间:2016-05-05 13:59:59

标签: .net dottrace

我在应用程序上运行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:\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>

2 个答案:

答案 0 :(得分:0)

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

renderItem={({item}) => {
        return (<List
            district = {item.address}
            phoneNumber = {item.phoneNumber}
            neighbourhood = {item.sideInformation}
        />); //now it returns list in FlatList
    }}

答案 1 :(得分:0)

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