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

Side by Side Diff: tracing/tracing/metrics/v8/utils.html

Issue 2526613002: Return short-hand object literals to exportTo. (Closed)
Patch Set: . Created 4 years 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <!-- 2 <!--
3 Copyright 2016 The Chromium Authors. All rights reserved. 3 Copyright 2016 The Chromium Authors. All rights reserved.
4 Use of this source code is governed by a BSD-style license that can be 4 Use of this source code is governed by a BSD-style license that can be
5 found in the LICENSE file. 5 found in the LICENSE file.
6 --> 6 -->
7 7
8 <link rel="import" href="/tracing/base/piecewise_linear_function.html"> 8 <link rel="import" href="/tracing/base/piecewise_linear_function.html">
9 <link rel="import" href="/tracing/base/range.html"> 9 <link rel="import" href="/tracing/base/range.html">
10 <link rel="import" href="/tracing/base/range_utils.html"> 10 <link rel="import" href="/tracing/base/range_utils.html">
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 function rangeForMemoryDumps(model) { 286 function rangeForMemoryDumps(model) {
287 var startOfFirstDumpWithV8 = 287 var startOfFirstDumpWithV8 =
288 model.globalMemoryDumps.filter(hasV8Stats).reduce( 288 model.globalMemoryDumps.filter(hasV8Stats).reduce(
289 (start, dump) => Math.min(start, dump.start), Infinity); 289 (start, dump) => Math.min(start, dump.start), Infinity);
290 if (startOfFirstDumpWithV8 === Infinity) 290 if (startOfFirstDumpWithV8 === Infinity)
291 return new tr.b.Range(); // Empty range. 291 return new tr.b.Range(); // Empty range.
292 return tr.b.Range.fromExplicitRange(startOfFirstDumpWithV8, Infinity); 292 return tr.b.Range.fromExplicitRange(startOfFirstDumpWithV8, Infinity);
293 } 293 }
294 294
295 return { 295 return {
296 findParent: findParent, 296 findParent,
297 groupAndProcessEvents: groupAndProcessEvents, 297 groupAndProcessEvents,
298 isForcedGarbageCollectionEvent: isForcedGarbageCollectionEvent, 298 isForcedGarbageCollectionEvent,
299 isGarbageCollectionEvent: isGarbageCollectionEvent, 299 isGarbageCollectionEvent,
300 isIdleTask: isIdleTask, 300 isIdleTask,
301 isLowMemoryEvent: isLowMemoryEvent, 301 isLowMemoryEvent,
302 isSubGarbageCollectionEvent: isSubGarbageCollectionEvent, 302 isSubGarbageCollectionEvent,
303 isTopGarbageCollectionEvent: isTopGarbageCollectionEvent, 303 isTopGarbageCollectionEvent,
304 isTopV8ExecuteEvent: isTopV8ExecuteEvent, 304 isTopV8ExecuteEvent,
305 isV8ExecuteEvent: isV8ExecuteEvent, 305 isV8ExecuteEvent,
306 mutatorUtilization: mutatorUtilization, 306 mutatorUtilization,
307 subGarbageCollectionEventName: subGarbageCollectionEventName, 307 subGarbageCollectionEventName,
308 topGarbageCollectionEventName: topGarbageCollectionEventName, 308 topGarbageCollectionEventName,
309 rangeForMemoryDumps: rangeForMemoryDumps, 309 rangeForMemoryDumps,
310 unionOfIntervals: unionOfIntervals 310 unionOfIntervals,
311 }; 311 };
312 }); 312 });
313 </script> 313 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698