简体   繁体   English

从Microsoft服务跟踪查看器导出数据

[英]Exporting Data From Microsoft Service Trace Viewer

I am doing some profiling on a WCF service and I want to compare the trace times for two different processes running the same methods at different speeds. 我正在对WCF服务进行一些分析,我想比较以不同速度运行相同方法的两个不同进程的跟踪时间。 Is there a way to export the data from Microsoft Service Trace Viewer to excel or something like that to be able to compare the resulting profile? 有没有办法将数据从Microsoft服务跟踪查看器导出到excel或类似的东西,以便能够比较生成的配置文件? I am using this page as a reference to set up the trace. 我使用此页面作为设置跟踪的参考。

I had the same issue. 我遇到过同样的问题。 I needed to compare two WCF traces to see why one didn't work and one did. 我需要比较两个WCF跟踪,看看为什么一个没有工作,一个没有。 I did not find any comparison tools for an svclog and the XML output I had for the trace was all on one line in the file, making it very difficult to compare in a standard comparison tool. 我没有找到任何svclog的比较工具,并且我对跟踪的XML输出都在文件的一行中,这使得在标准比较工具中进行比较非常困难。

With this in mind, I renamed the *.svclog file to *.config. 考虑到这一点,我将* .svclog文件重命名为* .config。 I then opened the file in Visual Studio and used CTRL+K, CTRL+D to format the document. 然后我在Visual Studio中打开该文件,并使用CTRL + K,CTRL + D来格式化文档。 This added standard XML formatting (with line breaks) to the log file. 这为日志文件添加了标准XML格式(带换行符)。 With the output in separate lines, I could use a standard file comparison tool. 输出分开,我可以使用标准的文件比较工具。 I used WinMerge for comparison. 我使用WinMerge进行比较。

Visual Studio Shortcuts: http://msdn.microsoft.com/en-us/library/da5kh0wa.aspx#bkmk_edit Visual Studio快捷方式: http//msdn.microsoft.com/en-us/library/da5kh0wa.aspx#bkmk_edit

WinMerge: http://winmerge.org/ WinMerge: http ://winmerge.org/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM