Show request's timestamp in Fiddler?

JavascriptFiddler

Javascript Problem Overview


I received a long Fiddler trace (with a complicated scenario) and need to correlate the requests with application logs.

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.

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).

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

Javascript Solutions


Solution 1 - Javascript

Update: In current versions of Fiddler, simply right-click the column headers and choose Customize Columns. In the dropdown, choose Session Timers and choose ClientBeginRequest in the dropdown list.

The old way to do this is to use FiddlerScript. Click Rules > Customize Rules.

Inside the class Handlers, add the following script code:

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.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionwishihadabetternameView Question on Stackoverflow
Solution 1 - JavascriptEricLawView Answer on Stackoverflow