Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(210)

Side by Side Diff: chrome/browser/resources/net_internals/timeline_view.js

Issue 9582020: Fix the disk cache timeline view entries. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * TimelineView displays a zoomable and scrollable graph of a number of values 6 * TimelineView displays a zoomable and scrollable graph of a number of values
7 * over time. The TimelineView class itself is responsible primarily for 7 * over time. The TimelineView class itself is responsible primarily for
8 * updating the TimelineDataSeries its GraphView displays. 8 * updating the TimelineDataSeries its GraphView displays.
9 */ 9 */
10 var TimelineView = (function() { 10 var TimelineView = (function() {
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 this.addDataSeries_(new NetworkTransferRateDataSeries( 207 this.addDataSeries_(new NetworkTransferRateDataSeries(
208 LogEventType.SOCKET_BYTES_RECEIVED, 208 LogEventType.SOCKET_BYTES_RECEIVED,
209 LogEventType.UDP_BYTES_RECEIVED), 209 LogEventType.UDP_BYTES_RECEIVED),
210 TimelineView.BYTES_RECEIVED_ID); 210 TimelineView.BYTES_RECEIVED_ID);
211 211
212 this.addDataSeries_(new NetworkTransferRateDataSeries( 212 this.addDataSeries_(new NetworkTransferRateDataSeries(
213 LogEventType.SOCKET_BYTES_SENT, 213 LogEventType.SOCKET_BYTES_SENT,
214 LogEventType.UDP_BYTES_SENT), 214 LogEventType.UDP_BYTES_SENT),
215 TimelineView.BYTES_SENT_ID); 215 TimelineView.BYTES_SENT_ID);
216 216
217 this.addDataSeries_(new DiskCacheTransferRateDataSeries(), 217 this.addDataSeries_(new DiskCacheTransferRateDataSeries(
218 LogEventType.ENTRY_READ_DATA),
218 TimelineView.DISK_CACHE_BYTES_READ_ID); 219 TimelineView.DISK_CACHE_BYTES_READ_ID);
219 220
220 this.addDataSeries_(new DiskCacheTransferRateDataSeries(), 221 this.addDataSeries_(new DiskCacheTransferRateDataSeries(
222 LogEventType.ENTRY_WRITE_DATA),
221 TimelineView.DISK_CACHE_BYTES_WRITTEN_ID); 223 TimelineView.DISK_CACHE_BYTES_WRITTEN_ID);
222 224
223 this.graphView_.setDataSeries(this.dataSeries_); 225 this.graphView_.setDataSeries(this.dataSeries_);
224 }, 226 },
225 227
226 /** 228 /**
227 * When we receive the constants, create or recreate the DataSeries. 229 * When we receive the constants, create or recreate the DataSeries.
228 */ 230 */
229 onReceivedConstants: function(constants) { 231 onReceivedConstants: function(constants) {
230 this.createDataSeries_(); 232 this.createDataSeries_();
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 this.leftView_.setGeometry(0, 0, newWidth, 100); 292 this.leftView_.setGeometry(0, 0, newWidth, 100);
291 293
292 // Force a re-layout now that the left view has changed width. 294 // Force a re-layout now that the left view has changed width.
293 this.setGeometry(this.getLeft(), this.getTop(), this.getWidth(), 295 this.setGeometry(this.getLeft(), this.getTop(), this.getWidth(),
294 this.getHeight()); 296 this.getHeight());
295 } 297 }
296 }; 298 };
297 299
298 return TimelineView; 300 return TimelineView;
299 })(); 301 })();
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698