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

Side by Side Diff: content/browser/resources/media/webrtc_internals.js

Issue 14880002: Fixes a memory leak when running webrtc-internals for a long time, by using a circular buffer of si… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix merge conflict Created 7 years, 7 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
« no previous file with comments | « content/browser/resources/media/timeline_graph_view.js ('k') | 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 var peerConnectionsListElem = null; 6 var peerConnectionsListElem = null;
7 var ssrcInfoManager = null; 7 var ssrcInfoManager = null;
8 var peerConnectionUpdateTable = null; 8 var peerConnectionUpdateTable = null;
9 var statsTable = null; 9 var statsTable = null;
10 var dumpCreator = null; 10 var dumpCreator = null;
11 11
12 // The maximum number of data points bufferred for each stats. Old data points
13 // will be shifted out when the buffer is full.
14 var MAX_STATS_DATA_POINT_BUFFER_SIZE = 1000;
15
12 <include src="ssrc_info_manager.js"/> 16 <include src="ssrc_info_manager.js"/>
13 <include src="stats_graph_helper.js"/> 17 <include src="stats_graph_helper.js"/>
14 <include src="stats_table.js"/> 18 <include src="stats_table.js"/>
15 <include src="peer_connection_update_table.js"/> 19 <include src="peer_connection_update_table.js"/>
16 <include src="dump_creator.js"/> 20 <include src="dump_creator.js"/>
17 21
18 function initialize() { 22 function initialize() {
19 peerConnectionsListElem = $('peer-connections-list'); 23 peerConnectionsListElem = $('peer-connections-list');
20 dumpCreator = new DumpCreator(peerConnectionsListElem); 24 dumpCreator = new DumpCreator(peerConnectionsListElem);
21 ssrcInfoManager = new SsrcInfoManager(); 25 ssrcInfoManager = new SsrcInfoManager();
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 167
164 168
165 /** 169 /**
166 * Delegates to dumpCreator to update the recording status. 170 * Delegates to dumpCreator to update the recording status.
167 * @param {!Object.<string>} update Key-value pairs describing the status of the 171 * @param {!Object.<string>} update Key-value pairs describing the status of the
168 * RTP recording. 172 * RTP recording.
169 */ 173 */
170 function updateDumpStatus(update) { 174 function updateDumpStatus(update) {
171 dumpCreator.onUpdate(update); 175 dumpCreator.onUpdate(update);
172 } 176 }
OLDNEW
« no previous file with comments | « content/browser/resources/media/timeline_graph_view.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698