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

Unified Diff: tracing/tracing/base/utils.html

Issue 1336373002: Port rendering_stats' implementation to javascript (Closed) Base URL: https://github.com/catapult-project/catapult@master
Patch Set: Address some of Nat's comments Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: tracing/tracing/base/utils.html
diff --git a/tracing/tracing/base/utils.html b/tracing/tracing/base/utils.html
index 1a98cab405281edc4a66e559a9e88aeaab0b0eac..dfacb013947e0cafc6c9e51ca1484d4c6bd74da5 100644
--- a/tracing/tracing/base/utils.html
+++ b/tracing/tracing/base/utils.html
@@ -53,6 +53,10 @@ tr.exportTo('tr.b', function() {
return res;
}
+ function flattenArray(array_of_arrays) {
+ return Array.prototype.concat.apply([], array_of_arrays);
+ }
dsinclair 2015/09/22 16:08:32 nit: indenting
+
function normalizeException(e) {
if (e === undefined || e === null) {
return {
@@ -120,6 +124,7 @@ tr.exportTo('tr.b', function() {
addSingletonGetter: addSingletonGetter,
deepCopy: deepCopy,
+ flattenArray: flattenArray,
normalizeException: normalizeException,
stackTrace: stackTrace,

Powered by Google App Engine
This is Rietveld 408576698