1 查看接口耗时
点击菜单栏 Rules —> Customize Rules… ,在弹出的 Fiddler ScriptEditor 窗口中有个 “class Handlers” 类,在这个类里加入下面的代码:
function BeginRequestTime(oS: Session) { if (oS.Timers != null) { return oS.Timers.ClientBeginRequest.ToString(); } return String.Empty; } public static BindUIColumn("Time Taken") function CalcTimingCol(oS: Session){ var sResult = String.Empty; if ((oS.Timers.ServerDoneResponse > oS.Timers.ClientDoneRequest)) { sResult = (oS.Timers.ServerDoneResponse - oS.Timers.ClientDoneRequest).ToString(); } return sResult; }
重启Fiddler就可以看到 “Time Taken” 列了: