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

Unified Diff: trace_processor/experimental/mappers/trace_import_cost.html

Issue 2083213002: Change call-sites in trace viewer to use generators instead of iteration functions. (Closed) Base URL: git@github.com:catapult-project/catapult@master
Patch Set: fix nits, rebase Created 4 years, 6 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: trace_processor/experimental/mappers/trace_import_cost.html
diff --git a/trace_processor/experimental/mappers/trace_import_cost.html b/trace_processor/experimental/mappers/trace_import_cost.html
index 2e871ea933a5c574e17b9add10a7862c170b36c2..4dc5a0639b39f1e24cec38e9f66cd02ac7ae136d 100644
--- a/trace_processor/experimental/mappers/trace_import_cost.html
+++ b/trace_processor/experimental/mappers/trace_import_cost.html
@@ -32,13 +32,13 @@ tr.exportTo('pi.m', function() {
function getTraceImportCostReport(result, model) {
var top_level_slices = [];
- model.iterateAllEvents(function(event) {
+ for (var event of model.getDescendantEvents()) {
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);
« no previous file with comments | « trace_processor/experimental/mappers/thread_grouping_test.html ('k') | trace_processor/experimental/mappers/trace_stats.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698