blob: c113a94b401f51adc581a549a0961af1654a8cc8 [file] [log] [blame]
<!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="/core/analysis/analysis_sub_view.html">
<link rel="import" href="/core/analysis/memory_dump_view.html">
<polymer-element name="tr-c-a-single-global-memory-dump-sub-view"
<tr-c-a-memory-dump-view id="memory_dump_view">
'use strict';
set selection(selection) {
if (selection.length !== 1)
throw new Error('Only supports a single global memory dump');
if (!(selection[0] instanceof tr.model.GlobalMemoryDump))
throw new Error('Only supports global memory dumps');
this.currentSelection_ = selection;
this.$.memory_dump_view.processMemoryDumps = tr.b.dictionaryValues(
get selection() {
return this.currentSelection_;
get requiresTallView() {
return true;