我想设置min winforms应用程序来使用IntelliTrace独立收集器。
Iv下载了应用程序,但我似乎找不到如何将其设置为winforms。
我猜它应该在这个链接中,但我不太明白:https://msdn.microsoft.com/en-us/library/hh398365(v=vs.110).aspx
有人有什么建议吗?我正试着在谷歌上找一些没有运气的例子。
向Rob致以最好的问候
发布于 2016-11-05 02:27:28
您需要使用IntelliTrace独立收集器来启动WinForm应用程序。您可以从您发布的https://msdn.microsoft.com/en-us/library/hh398365.aspx#BKMK_Collect_Data_from_Executables链接中找到参考资料
sharepoint用于web应用程序或PowerShell应用程序。对于其他托管应用程序,您应该使用的命令是
*\IntelliTraceSC.exe将启动/cp:/f:
发布于 2017-06-14 20:34:49
我有一个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发布于 2017-11-15 22:19:32
Download Intellitrace standalone collector
expand /f:* IntelliTraceCollection.cab .
(不要忘记将.放在末尾)
icacls "D:\IntelliTrace" /grant
(D:\Intellitrace是指定文件夹的路径,另一个文件夹为D:\IntelliTraceLog (用于存储收集的智能竞赛日志文件)
D:\Intellitrace\IntelliTraceSC.exe launch /cp:"D:\Intellitrace\collection_plan.ASP.NET.default.xml" /f: "C:IntelliTraceLog\MyApp.itrace" "D:\xyz\abc.exe"
(D:\xyz\abc.exe是您要运行的文件的实际路径)
https://stackoverflow.com/questions/37564116
复制相似问题