作者:林台育怡婷雅雯 | 来源:互联网 | 2023-05-17 07:55
Ihaveafewsimultaneousprofilingrequirementsthatseemtoexcludeeachothersidealtoolsets.I
I have a few simultaneous profiling requirements that seem to exclude each others' ideal toolsets. I am working in C#, measuring the network transfer size & load time for the complete set of "polite load" content of a script, frame, and all ensuing constituent parts. I'm kicking this off as a step in a deployment process and logging the results programmatically, so Firebug or the other F12 options... aren't. The measurements must:
我有几个同时的分析要求似乎排除了彼此的理想工具集。我正在使用C#,测量脚本,框架和所有后续组成部分的完整“礼让负载”内容的网络传输大小和加载时间。我正在尝试将其作为部署过程中的一个步骤并以编程方式记录结果,因此Firebug或其他F12选项......不是。测量必须:
- Measure the effects of gzip/deflate compression
测量gzip / deflate压缩的效果
- Load elements initiated by Javascript/DHTML, as well as images referenced by stylesheets
加载由Javascript / DHTML启动的元素,以及样式表引用的图像
- Calculate the delta when browser caching is on/off (some elements will be sent with the cache-control private header)
在浏览器缓存打开/关闭时计算增量(某些元素将与缓存控制私有头一起发送)
The stock .NET 3.5 WebBrowser Control gives me Javascript and DHTML handling for timing purposes, but no measurement of transfer size as best I can tell. I suppose I could traverse the DOM and separately issue HttpWebRequests for any element with a src attribute, but I'd like to avoid that of course. TIA for any suggestions.
股票.NET 3.5 WebBrowser控件为我提供了Javascript和DHTML处理以用于计时目的,但我没有最好的测量传输大小。我想我可以遍历DOM并为具有src属性的任何元素单独发出HttpWebRequests,但我当然希望避免这种情况。任何建议的TIA。
1 个解决方案