12 |
13 | Wall Time:
14 | {{metrics.wallTime | formatTime}}
15 |
16 | {{metrics.wallTime/viewportDuration.value | percent:'1.3-3'}}
17 |
18 |
19 |
20 | Per CPU Time:
21 | {{metrics.perCpuTime | formatTime}}
22 |
23 | {{metrics.perCpuTime/viewportDuration.value | percent:'1.3-3'}}
24 |
25 |
26 |
27 | Per Thread Time:
28 | {{metrics.perThreadTime | formatTime}}
29 |
30 | {{metrics.perThreadTime/viewportDuration.value | percent:'1.3-3'}}
31 |
32 |
33 |
34 | CPU Utilization Fraction:
35 |
36 | {{metrics.cpuUtilizationFraction | percent:'1.2-2'}}
37 |
38 |
39 |
40 |
--------------------------------------------------------------------------------
/client/app/heatmap/metrics_overlay/metrics_overlay_module.ts:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright 2019 Google Inc. All Rights Reserved.
3 | //
4 | // Licensed under the Apache License, Version 2.0 (the "License");
5 | // you may not use this file except in compliance with the License.
6 | // You may obtain a copy of the License at
7 | //
8 | // http://www.apache.org/licenses/LICENSE-2.0
9 | //
10 | // Unless required by applicable law or agreed to in writing, software
11 | // distributed under the License is distributed on an "AS-IS" BASIS,
12 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | // See the License for the specific language governing permissions and
14 | // limitations under the License.
15 | //
16 | //
17 | import {NgModule} from '@angular/core';
18 | import {MatButtonModule} from '@angular/material/button';
19 | import {MatDialogModule} from '@angular/material/dialog';
20 | import {MatIconModule} from '@angular/material/icon';
21 | import {MatSnackBarModule} from '@angular/material/snack-bar';
22 | import {BrowserModule} from '@angular/platform-browser';
23 |
24 | import {UtilModule} from '../../util';
25 |
26 | import {DialogMetricsHelp, MetricsOverlay} from './metrics_overlay';
27 |
28 |
29 | @NgModule({
30 | declarations: [
31 | MetricsOverlay,
32 | DialogMetricsHelp,
33 | ],
34 | imports: [
35 | BrowserModule,
36 | MatButtonModule,
37 | MatDialogModule,
38 | MatIconModule,
39 | MatSnackBarModule,
40 | UtilModule,
41 | ],
42 | exports: [
43 | MetricsOverlay,
44 | DialogMetricsHelp,
45 | ],
46 | entryComponents: [DialogMetricsHelp]
47 | })
48 | export class MetricsOverlayModule {
49 | }
50 |
--------------------------------------------------------------------------------
/client/app/heatmap/x_axis_layer.ts:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright 2019 Google Inc. All Rights Reserved.
3 | //
4 | // Licensed under the Apache License, Version 2.0 (the "License");
5 | // you may not use this file except in compliance with the License.
6 | // You may obtain a copy of the License at
7 | //
8 | // http://www.apache.org/licenses/LICENSE-2.0
9 | //
10 | // Unless required by applicable law or agreed to in writing, software
11 | // distributed under the License is distributed on an "AS-IS" BASIS,
12 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | // See the License for the specific language governing permissions and
14 | // limitations under the License.
15 | //
16 | //
17 | import {Component, ElementRef, Input, OnInit, ViewChild} from '@angular/core';
18 | import * as d3 from 'd3';
19 | import {BehaviorSubject} from 'rxjs';
20 |
21 | import {CollectionParameters} from '../models';
22 | import {Viewport} from '../util';
23 | import * as Duration from '../util/duration';
24 |
25 | /**
26 | * The xAxis component displays adaptable time ticks for the heatmap, based on
27 | * the current viewport.
28 | */
29 | @Component({
30 | selector: '[xAxis]',
31 | template: `
32 |