Skip to content

Commit

Permalink
Add net-internals timeline view for number of DNS jobs
Browse files Browse the repository at this point in the history
Review URL: https://chromiumcodereview.appspot.com/10968048

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@158188 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
cbentzel@chromium.org committed Sep 22, 2012
1 parent c3accd2 commit c1a12d2
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions chrome/browser/resources/net_internals/timeline_view.css
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@
color: rgb(102, 187, 187);
}

#timeline-view-dns-jobs {
color: rgb(150, 20, 29);
}

#timeline-view-bytes-received {
color: rgb(0, 187, 0);
}
Expand Down
3 changes: 3 additions & 0 deletions chrome/browser/resources/net_internals/timeline_view.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
<li id=timeline-view-dns-requests><label><input type=checkbox checked>
&#9608; <span class=timeline-view-text>DNS requests</span></label>
</li>
<li id=timeline-view-dns-jobs><label><input type=checkbox checked>
&#9608; <span class=timeline-view-text>DNS jobs</span></label>
</li>
<li id=timeline-view-bytes-received><label><input type=checkbox checked>
&#9608; <span class=timeline-view-text>Bytes received</span></label>
</li>
Expand Down
6 changes: 6 additions & 0 deletions chrome/browser/resources/net_internals/timeline_view.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ var TimelineView = (function() {
TimelineView.IN_USE_SOCKETS_ID = 'timeline-view-in-use-sockets';
TimelineView.URL_REQUESTS_ID = 'timeline-view-url-requests';
TimelineView.DNS_REQUESTS_ID = 'timeline-view-dns-requests';
TimelineView.DNS_JOBS_ID = 'timeline-view-dns-jobs';
TimelineView.BYTES_RECEIVED_ID = 'timeline-view-bytes-received';
TimelineView.BYTES_SENT_ID = 'timeline-view-bytes-sent';
TimelineView.DISK_CACHE_BYTES_READ_ID =
Expand Down Expand Up @@ -207,6 +208,11 @@ var TimelineView = (function() {
EventType.HOST_RESOLVER_IMPL_REQUEST),
TimelineView.DNS_REQUESTS_ID);

this.addDataSeries_(new SourceCountDataSeries(
EventSourceType.HOST_RESOLVER_IMPL_JOB,
EventType.HOST_RESOLVER_IMPL_JOB),
TimelineView.DNS_JOBS_ID);

this.addDataSeries_(new NetworkTransferRateDataSeries(
EventType.SOCKET_BYTES_RECEIVED,
EventType.UDP_BYTES_RECEIVED),
Expand Down

0 comments on commit c1a12d2

Please sign in to comment.