我想設置min winforms應用程序以使用IntelliTrace獨立收集器。IntelliTrace獨立收集器
我下載了應用程序,但我似乎無法找到我如何設置爲winforms。
它應該是在這個環節我想,但我不太明白:https://msdn.microsoft.com/en-us/library/hh398365(v=vs.110).aspx
有沒有人有什麼建議嗎?我試圖谷歌找到沒有運氣的例子。
問候 羅布
我想設置min winforms應用程序以使用IntelliTrace獨立收集器。IntelliTrace獨立收集器
我下載了應用程序,但我似乎無法找到我如何設置爲winforms。
它應該是在這個環節我想,但我不太明白:https://msdn.microsoft.com/en-us/library/hh398365(v=vs.110).aspx
有沒有人有什麼建議嗎?我試圖谷歌找到沒有運氣的例子。
問候 羅布
您需要使用的IntelliTrace獨立收集器啓動您的WinForm應用程序。您可以從您發佈的鏈接中找到參考https://msdn.microsoft.com/en-us/library/hh398365.aspx#BKMK_Collect_Data_from_Executables
PowerShell cmdlet適用於Web應用程序或SharePoint應用程序。對於其他管理應用程序,你應該使用的命令是
<FullPathToIntelliTraceCollectorExecutable> \ IntelliTraceSC.exe 推出 /CP: <PathToCollectionPlan> /F: <FullPathToITraceFileDirectoryAndFileName> <PathToAppExecutableFileAndFileName>
我有一個powershell腳本,我用它來收集控制檯應用程序的痕跡。這應該是相同的WinForms(我已經測試它對WPF應用程序,它的工作原理)。我不確定的唯一步驟就是您需要的「收集計劃」 - 這可能需要大量實驗。
祝你好運!
#1) Create a C:\IntelliTrace and place this script in there
$ROOT_DIR = $PSScriptRoot
#2) Extract the intellitrace cab file to C:\IntelliTrace\IntelliTraceCollection folder
#3) Where is the path to the winforms executable?
$Prog = "C:\path\to\my\winformsApplication.exe"
#4) Where do you want to save the trace?
$OutputLog = "$ROOT_DIR\MyTrace.iTrace"
#Note use of relative paths
$IntelliTraceStandAlone = "$ROOT_DIR\IntelliTraceCollection\IntelliTraceSC.exe"
#YOU WILL MOST LIKELY NEED A DIFFERENT COLLECTION PLAN
$collectionPlan = "$ROOT_DIR\IntelliTraceCollection\collection_plan.ASP.NET.default.xml"
#5) Run it..
#Note "dot space $IntelliTrace..."
. $IntelliTraceStandAlone launch /logfile:$OutputLog /collectionplan:$collectionPlan $Prog
上的.exe文件
把IntelliTraceCollectio.cab文件的文件夾中下載Intellitrace standalone collector
雙擊。 比如d:\的IntelliTrace
打開命令提示符作爲管理員 轉到IntelliTraceCollectio.cab 的指定路徑,然後輸入命令
expand /f:* IntelliTraceCollection.cab .
(把不要忘記。在端)
使用命令提示, 輸入
icacls "D:\IntelliTrace" /grant
(d:\的IntelliTrace是文件夾的如上指定的路徑)
創建一個多個文件夾作爲d :\ IntelliTraceLog(用於存儲收集的intellitrace日誌文件)
要從應用程序收集數據,請輸入comm和
D:\Intellitrace\IntelliTraceSC.exe launch /cp:"D:\Intellitrace\collection_plan.ASP.NET.default.xml" /f: "C:IntelliTraceLog\MyApp.itrace" "D:\xyz\abc.exe"
(d:\某某\ ABC.exe是要運行文件的實際路徑)
你應該給我們更多的細節。 「我似乎無法找到我如何將它設置爲winforms」,你究竟意味着什麼? –