热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

以编程方式测量DHTML总传输大小-ProgrammaticallymeasureDHTMLtotaltransfersize

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 个解决方案

#1


1  

Fiddler has an API: http://www.fiddlertool.com/Fiddler/dev/. It allows automation (ExecAction.exe). Don't know if it supports all the metrics you're looking for.

Fiddler有一个API:http://www.fiddlertool.com/Fiddler/dev/。它允许自动化(ExecAction.exe)。不知道它是否支持您正在寻找的所有指标。


推荐阅读
author-avatar
林台育怡婷雅雯
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有