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

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 Dan's reviews 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..bf8fa05f76833a9050d49e0afd98ebc42211565c 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 [].concat.apply([], array_of_arrays);
nduca 2015/09/21 19:55:16 Array.prototype.concat
nednguyen 2015/09/21 20:09:54 Done.
+ }
+
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