Add replay log support to gdig.
commit36132026f76105e8dd4d665d234206c6813c7ecf
authorcbentzel@chromium.org <cbentzel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 19 Dec 2012 18:26:06 +0000 (19 18:26 +0000)
committercbentzel@chromium.org <cbentzel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 19 Dec 2012 18:26:06 +0000 (19 18:26 +0000)
tree290c4b0bf92c0a5cc40621b5d6f830e81da75d9a
parentfd38cc8b1345df36a79c95a63845e95d28910b41
Add replay log support to gdig.

This allows for batch resolutions in a time series.

The input format is a text file where each line contains:

start_time domain_name

where start_time is time in milliseconds starting at 0, and should be sorted in ascending order.

The output format is a text file where each line contains:

index resolve_time_since_start resolve_time domain_name result [error_message|address_list]

where:
  - index is the 1-based line number in the original file
  - resolve_time_since_start is the time in milliseconds since the start of all resolutions
  - resolve_time is the time in milliseconds to resolve this entry
  - domain_name is the domain_name
  - result is the numerical net_error result.
  - error_message is the plain text error message used when result is not 0
  - address_list is a list of IPv4 and/or IPv6 addresses for the domain when result is 0

Review URL: https://chromiumcodereview.appspot.com/11554020

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173953 0039d316-1c4b-4281-b951-d872f2087c98
net/tools/gdig/gdig.cc