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

Unified Diff: perf_insights/perf_insights/mappers/trace_import_cost.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/trace_import_cost.html
diff --git a/perf_insights/perf_insights/mappers/trace_import_cost.html b/perf_insights/perf_insights/mappers/trace_import_cost.html
deleted file mode 100644
index 2e871ea933a5c574e17b9add10a7862c170b36c2..0000000000000000000000000000000000000000
--- a/perf_insights/perf_insights/mappers/trace_import_cost.html
+++ /dev/null
@@ -1,57 +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="/perf_insights/mappers/reduce.html">
-<link rel="import" href="/perf_insights/mre/function_handle.html">
-<link rel="import" href="/tracing/extras/measure/measure.html">
-<link rel="import" href="/tracing/model/async_slice_group.html">
-
-<script>
-'use strict';
-tr.exportTo('pi.m', function() {
- var MeasureAsyncSlice = tr.e.measure.MeasureAsyncSlice;
-
- function fetchSlicesInfo(slice, cost_infos) {
- var cost_info = {
- args: slice.args,
- title: slice.originalTitle,
- start: slice.start,
- duration: slice.duration,
- subSlices: []
- };
- cost_infos.push(cost_info);
- var subSlices = slice.subSlices;
- for (var i = 0; i < subSlices.length; ++i) {
- fetchSlicesInfo(subSlices[i], cost_info.subSlices);
- }
- }
-
- function getTraceImportCostReport(result, model) {
- var top_level_slices = [];
- model.iterateAllEvents(function(event) {
- if (event instanceof MeasureAsyncSlice &&
- event.viewSubGroupTitle === 'TraceImport' &&
- event.isTopLevel) {
- top_level_slices.push(event);
- }
- });
- var traceImportCostInfos = [];
- for (var i = 0; i < top_level_slices.length; ++i) {
- fetchSlicesInfo(top_level_slices[i], traceImportCostInfos);
- }
-
- result.addPair('trace_import_cost_info',
- {'slices': traceImportCostInfos});
- }
-
- pi.FunctionRegistry.register(getTraceImportCostReport);
-
- return {
- getTraceImportCostReport: getTraceImportCostReport
- };
-});
-</script>

Powered by Google App Engine
This is Rietveld 408576698