javascript 在 Fiddler 中显示请求的时间戳?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/3364453/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Show request's timestamp in Fiddler?
提问by wishihadabettername
I received a long Fiddler trace (with a complicated scenario) and need to correlate the requests with application logs.
我收到了很长的 Fiddler 跟踪(具有复杂的场景),需要将请求与应用程序日志相关联。
Unfortunately, while Fiddler displays the requests chronologically, it doesn't display the timestamps of the request. To access that information (which is recorded) I have to right-click each line and look in the pop-up window with the properties. This is very time-consuming when having to comb through hundreds of lines. Looking at the raw capture data is not much better as each request has its own file and I do need the Fiddler interface.
不幸的是,虽然 Fiddler 按时间顺序显示请求,但它不显示请求的时间戳。要访问该信息(已记录),我必须右键单击每一行并查看带有属性的弹出窗口。当必须梳理数百行时,这非常耗时。查看原始捕获数据并没有好多少,因为每个请求都有自己的文件,而我确实需要 Fiddler 接口。
Pedantic note: I'm aware there isn't a single timestamp to show (below are all the timestamps that are recorded). ClientConnected would be fine (or any other, as long as it's the same, that allows me to correlate the logs visually).
学究注:我知道没有显示单个时间戳(以下是记录的所有时间戳)。ClientConnected 会很好(或任何其他,只要它是相同的,这允许我在视觉上关联日志)。
Thanks.
谢谢。
== TIMING INFO ============
ClientConnected: 10:32:57:8906
ClientDoneRequest: 10:32:57:8906
Gateway Determination: 0ms
DNS Lookup: 0ms
TCP/IP Connect: 0ms
ServerGotRequest: 10:32:57:9062
ServerBeginResponse: 10:32:58:2812
ServerDoneResponse: 10:32:58:2884
ClientBeginResponse: 10:32:58:2900
ClientDoneResponse: 10:32:58:2912
回答by EricLaw
Update: In current versions of Fiddler, simply right-click the column headers and choose Customize Columns. In the dropdown, choose Session Timersand choose ClientBeginRequestin the dropdown list.
更新:在当前版本的 Fiddler 中,只需右键单击列标题并选择自定义列。在下拉列表中,选择会话计时器并ClientBeginRequest在下拉列表中进行选择。
The old way to do this is to use FiddlerScript. Click Rules> Customize Rules.
执行此操作的旧方法是使用 FiddlerScript。单击规则>自定义规则。
Inside the class Handlers, add the following script code:
在 class 中Handlers,添加以下脚本代码:
public static BindUIColumn("BeginRequestTime", 60)
function BeginRequestTime(oS: Session)
{
if (oS.Timers != null)
{
return oS.Timers.ClientBeginRequest.ToString();
}
return String.Empty;
}
Then, simply reload your SAZ file.
然后,只需重新加载您的 SAZ 文件。

