2017-07-12 40 views
0

PerfView v1.9.0.0(収集 - >収集 - >収集開始、デフォルトパラメータ)を使用してETLファイルを作成しようとすると、「例外が発生しました詳細についてはログを参照してください以下PerfView - ファイルが既に存在する場合、ファイルを作成できません。 (HRESULTからの例外:0x800700B7)

は、私がログに見えるものです:。

Started with command line: "C:\Users\XYZ\Desktop\PerfView.exe" 
PerfView Version: 1.9.0.0 BuildDate: Fri 02/12/2016 11:19:34.83 
Started: View 
Warning: PdbScope not found at C:\Users\XYZ\Desktop\PerfViewExtensions\PdbScope.exe 
Disabling the Image Size Menu Item. 
Warning: ILSize not found at C:\Users\XYZ\Desktop\PerfViewExtensions\ILSize.dll 
Disabling the IL Size Menu Item. 
Completed: View (Elapsed Time: 0.021 sec) 
Collection Dialog open. 
Started: Collecting data C:\Users\XYZ\Desktop\PerfViewData.etl 
[Kernel Log: C:\Users\XYZ\Desktop\PerfViewData.kernel.etl] 
Kernel keywords enabled: Default 
Aborting tracing for sessions 'NT Kernel Logger' and 'PerfViewSession'. 
Insuring .NET Allocation profiler not installed. 
Completed: Collecting data C:\Users\XYZ\Desktop\PerfViewData.etl (Elapsed Time: 1.300 sec) 
Exception Occurred: System.Runtime.InteropServices.COMException (0x800700B7): Cannot create a file when that file already exists. (Exception from HRESULT: 0x800700B7) 
    at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo) 
    at Microsoft.Diagnostics.Tracing.Session.TraceEventSession.EnableKernelProvider(Keywords flags, Keywords stackCapture) 
    at PerfView.CommandProcessor.Start(CommandLineArgs parsedArgs) 
    at PerfView.CommandProcessor.Collect(CommandLineArgs parsedArgs) 
    at PerfView.MainWindow.<>c__DisplayClass13_0.<ExecuteCommand>b__0() 
    at PerfView.StatusBar.<>c__DisplayClass19_0.<StartWork>b__0(Object <state>) 
An exceptional condition occurred, see log for details. 

がコースオフ、ファイルが前に存在したことがないは(失敗)OPE後には存在しません。配給も。これは、ファイル名や提供するディレクトリに関係なく、収集しようとするたびに発生します。

私は間違っていますか?

+0

は、Windows 7を使用する場合、ETW(ProcessExplorer、Resmon) – magicandre1981

答えて

1

Windows 7までは、名前がNT Kernel Loggerのカーネルセッションを1つしか使用できません。 Windows 8以降、別の名前の新しいセッションを作成できます。

Windows 8、Windows Server 2012以降では、SystemTraceProvider を最大8つのロガーセッション用に多重化できます。ロガーセッション用の最初の2つのスロット は、NTカーネルロガーと サーキュラーカーネルコンテキストロガー用に予約されています。

NT Kernel Logger(Process Explorer、Process Hacker、Resmonなど)を使用して問題を解決するツールを停止します。

+0

感謝を使用する他のツールを停止します。私は常にWindows 7上でProcess Explorerを実行していて、それが問題ではないと思っていました。それを殺して、突然私はプロファイラを実行することができます! – Glaucus

0

はあなたの提案のためにあなたmagicandre1981をありがとうございます。私は実際にWindows 7を使用しており、私はProcess Hackerを実行していました。 Process Hackerを停止した後、PerfViewはコレクションを正常に実行できました。乾杯。

関連する問題