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

Unified Diff: perf_insights/perf_insights/mappers/reduce.html

Issue 2162963002: [polymer] Merge of master into polymer10-migration (Closed) Base URL: git@github.com:catapult-project/catapult.git@polymer10-migration
Patch Set: Merge polymer10-migration int polymer10-merge Created 4 years, 5 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: perf_insights/perf_insights/mappers/reduce.html
diff --git a/perf_insights/perf_insights/mappers/reduce.html b/perf_insights/perf_insights/mappers/reduce.html
deleted file mode 100644
index 137393ec78e97e16056687503543848d7c0e260f..0000000000000000000000000000000000000000
--- a/perf_insights/perf_insights/mappers/reduce.html
+++ /dev/null
@@ -1,49 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2015 The Chromium Authors. All rights reserved.
-Use of this source code is governed by a BSD-style license that can be
-found in the LICENSE file.
--->
-<link rel="import" href="/tracing/base/iteration_helpers.html">
-
-<script>
-'use strict';
-
-tr.exportTo('pi.m', function() {
- function StreamingReducer(reducingTargetConstructor) {
- this.reducingTargetConstructor = reducingTargetConstructor;
- this.reducingTargetsByKey_ = {};
- }
-
- StreamingReducer.prototype = {
- push: function(key, value) {
- var reducingTarget = this.reducingTargetsByKey_[key];
- if (reducingTarget === undefined) {
- reducingTarget = new this.reducingTargetConstructor(key, value);
- this.reducingTargetsByKey_[key] = reducingTarget;
- }
- reducingTarget.push(key, value);
- },
-
- finalizeAndIterResults: function(outputFunc, opt_this) {
- for (var key in this.reducingTargetsByKey_) {
- var reducingTarget = this.reducingTargetsByKey_[key];
- var resultValue = reducingTarget.finalizeAndGetResult(key);
- outputFunc.call(opt_this, key, resultValue);
- }
- },
-
- finalizeAndGetResults: function() {
- var res = [];
- this.finalizeAndIterResults(function(key, value) {
- res.push({key: key, value: value});
- });
- return res;
- }
- };
-
- return {
- StreamingReducer: StreamingReducer
- };
-});
-</script>

Powered by Google App Engine
This is Rietveld 408576698