Deepanjan Roy | e33add6 | 2018-08-09 10:13:16 -0400 | [diff] [blame] | 1 | // Copyright (C) 2018 The Android Open Source Project |
| 2 | // |
| 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | // you may not use this file except in compliance with the License. |
| 5 | // You may obtain a copy of the License at |
| 6 | // |
| 7 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | // |
| 9 | // Unless required by applicable law or agreed to in writing, software |
| 10 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | // See the License for the specific language governing permissions and |
| 13 | // limitations under the License. |
| 14 | |
Deepanjan Roy | 1f658fe | 2018-09-11 08:38:17 -0400 | [diff] [blame] | 15 | import * as m from 'mithril'; |
| 16 | |
Deepanjan Roy | e33add6 | 2018-08-09 10:13:16 -0400 | [diff] [blame] | 17 | import {Panel} from './panel'; |
| 18 | |
Deepanjan Roy | abd79aa | 2018-08-28 07:29:15 -0400 | [diff] [blame] | 19 | export class FlameGraphPanel extends Panel { |
Deepanjan Roy | e33add6 | 2018-08-09 10:13:16 -0400 | [diff] [blame] | 20 | renderCanvas() {} |
Deepanjan Roy | 1f658fe | 2018-09-11 08:38:17 -0400 | [diff] [blame] | 21 | view() { |
| 22 | return [ |
| 23 | m('header', 'Flame Graph'), |
| 24 | m('embed.flame-graph-panel', |
Deepanjan Roy | 6e4fe9d | 2018-09-12 14:03:27 -0400 | [diff] [blame] | 25 | {type: 'image/svg+xml', src: 'assets/flamegraph.svg'}) |
Deepanjan Roy | 1f658fe | 2018-09-11 08:38:17 -0400 | [diff] [blame] | 26 | ]; |
Primiano Tucci | 9b5f13e | 2018-08-10 00:36:19 +0100 | [diff] [blame] | 27 | } |
Hector Dearman | 7cf6b10 | 2018-08-09 17:30:57 +0100 | [diff] [blame] | 28 | } |