Fidder监控请求响应时间(毫秒)和请求IP

增加监控请求的详情时间
CustomRules.jsclass Handlers中增加

//添加请求的响应时间
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).TotalMilliseconds.ToString("#0");//不要小数点后的数
    }
    return sResult+=" ms";
}

监听IP

//请求IP
FiddlerObject.UI.lvSessions.AddBoundColumn("ServerIP", 120, "X-HostIP");

猜你喜欢

转载自blog.csdn.net/qq_22227087/article/details/78395974