Rules-->Customize Rules添加代码,后重启fiddler:
//响应用时(这段也是在网上找的)functionBeginRequestTime(oS: Session){
if (oS.Timers != null) {
return oS.Timers.ClientBeginRequest.ToString();
}
return String.Empty;
}public static BindUIColumn("Time Taken")functionCalcTimingCol(oS: Session){
var sResult = String.Empty;
if ((oS.Timers.ServerDoneResponse > oS.Timers.ClientDoneRequest)) {
sResult = (oS.Timers.ServerDoneResponse - oS.Timers.ClientDoneRequest).ToString();
//sResult = oS.Timers.ServerGotRequest.ToString(); }
return sResult;
}//请求时间点(这个是根据上面那一段自己改的,同理还可以显示响应时间点等)public static BindUIColumn("Time Happen") //tab的名称,自己想改什么就改什么functionRecordTimeBegin(oS: Session){
var sResult = String.Empty;
if ((oS.Timers.ServerDoneResponse > oS.Timers.ClientDoneRequest)) {
//sResult = (oS.Timers.ServerDoneResponse - oS.Timers.ClientDoneRequest).ToString(); sResult = oS.Timers.ServerGotRequest.ToString();
}
return sResult;
}