diff --git a/frontend/app/BUILD b/frontend/app/BUILD index 5dde534ec..1acd4fdd8 100644 --- a/frontend/app/BUILD +++ b/frontend/app/BUILD @@ -19,7 +19,7 @@ xprof_ng_module( "@npm//@ngrx/store", "@npm//rxjs", "@org_xprof//frontend/app/common/angular:angular_common_http", - "@org_xprof//frontend/app/common/angular:angular_material_legacy_progress_bar", + "@org_xprof//frontend/app/common/angular:angular_material_progress_bar", "@org_xprof//frontend/app/common/angular:angular_platform-browser_animation", "@org_xprof//frontend/app/common/constants", "@org_xprof//frontend/app/common/interfaces", diff --git a/frontend/app/app.ng.html b/frontend/app/app.ng.html index 31280bdb4..22f016e55 100644 --- a/frontend/app/app.ng.html +++ b/frontend/app/app.ng.html @@ -9,7 +9,7 @@ -
+
Loading data
diff --git a/frontend/app/app_module.ts b/frontend/app/app_module.ts index 82c132f73..d538d9778 100644 --- a/frontend/app/app_module.ts +++ b/frontend/app/app_module.ts @@ -1,6 +1,6 @@ import {HttpClientModule} from '@angular/common/http'; import {NgModule} from '@angular/core'; -import {MatLegacyProgressBarModule} from '@angular/material/legacy-progress-bar'; +import {MatProgressBarModule} from '@angular/material/progress-bar'; import {BrowserModule} from '@angular/platform-browser'; import {BrowserAnimationsModule} from '@angular/platform-browser/animations'; import {EmptyPageModule} from 'org_xprof/frontend/app/components/empty_page/empty_page_module'; @@ -18,7 +18,7 @@ import {App} from './app'; imports: [ BrowserModule, HttpClientModule, - MatLegacyProgressBarModule, + MatProgressBarModule, EmptyPageModule, MainPageModule, BrowserAnimationsModule, diff --git a/frontend/app/common/angular/BUILD b/frontend/app/common/angular/BUILD index 94f467f02..d06a95bd0 100644 --- a/frontend/app/common/angular/BUILD +++ b/frontend/app/common/angular/BUILD @@ -27,7 +27,7 @@ ts_library( ) ts_library( - name = "angular_material_legacy_progress_bar", + name = "angular_material_progress_bar", srcs = [], deps = [ "@npm//@angular/material", @@ -35,7 +35,7 @@ ts_library( ) ts_library( - name = "angular_material_legacy_form_field", + name = "angular_material_form_field", srcs = [], deps = [ "@npm//@angular/material", @@ -51,7 +51,7 @@ ts_library( ) ts_library( - name = "angular_material_legacy_input", + name = "angular_material_input", srcs = [], deps = [ "@npm//@angular/material", @@ -75,7 +75,7 @@ ts_library( ) ts_library( - name = "angular_material_legacy_menu", + name = "angular_material_menu", srcs = [], deps = [ "@npm//@angular/material", @@ -91,7 +91,7 @@ ts_library( ) ts_library( - name = "angular_material_legacy_checkbox", + name = "angular_material_checkbox", srcs = [], deps = [ "@npm//@angular/material", @@ -99,7 +99,7 @@ ts_library( ) ts_library( - name = "angular_material_legacy_dialog", + name = "angular_material_dialog", srcs = [], deps = [ "@npm//@angular/material", @@ -107,7 +107,7 @@ ts_library( ) ts_library( - name = "angular_material_legacy_radio", + name = "angular_material_radio", srcs = [], deps = [ "@npm//@angular/material", @@ -115,7 +115,7 @@ ts_library( ) ts_library( - name = "angular_material_legacy_progress_spinner", + name = "angular_material_progress_spinner", srcs = [], deps = [ "@npm//@angular/material", @@ -163,7 +163,7 @@ ts_library( ) ts_library( - name = "angular_material_legacy_core", + name = "angular_material_core", srcs = [], deps = [ "@npm//@angular/material", @@ -171,7 +171,7 @@ ts_library( ) ts_library( - name = "angular_material_legacy_select", + name = "angular_material_select", srcs = [], deps = [ "@npm//@angular/material", diff --git a/frontend/app/components/capture_profile/BUILD b/frontend/app/components/capture_profile/BUILD index 45d0cde24..889a13065 100644 --- a/frontend/app/components/capture_profile/BUILD +++ b/frontend/app/components/capture_profile/BUILD @@ -20,9 +20,9 @@ xprof_ng_module( "@npm//@ngrx/store", "@npm//rxjs", "@org_xprof//frontend/app/common/angular:angular_material_button", - "@org_xprof//frontend/app/common/angular:angular_material_legacy_dialog", - "@org_xprof//frontend/app/common/angular:angular_material_legacy_progress_spinner", + "@org_xprof//frontend/app/common/angular:angular_material_dialog", "@org_xprof//frontend/app/common/angular:angular_material_legacy_snack_bar", + "@org_xprof//frontend/app/common/angular:angular_material_progress_spinner", "@org_xprof//frontend/app/common/interfaces", "@org_xprof//frontend/app/components/capture_profile/capture_profile_dialog", "@org_xprof//frontend/app/services/data_service", diff --git a/frontend/app/components/capture_profile/capture_profile.ts b/frontend/app/components/capture_profile/capture_profile.ts index 7f1cfbc31..4132cbf5a 100644 --- a/frontend/app/components/capture_profile/capture_profile.ts +++ b/frontend/app/components/capture_profile/capture_profile.ts @@ -1,5 +1,5 @@ import {Component, OnDestroy} from '@angular/core'; -import {MatLegacyDialog} from '@angular/material/legacy-dialog'; +import {MatDialog} from '@angular/material/dialog'; import {MatLegacySnackBar} from '@angular/material/legacy-snack-bar'; import {Store} from '@ngrx/store'; import {CaptureProfileOptions, CaptureProfileResponse} from 'org_xprof/frontend/app/common/interfaces/capture_profile'; @@ -27,7 +27,7 @@ export class CaptureProfile implements OnDestroy { capturingProfile: Observable; constructor( - private readonly dialog: MatLegacyDialog, + private readonly dialog: MatDialog, private readonly snackBar: MatLegacySnackBar, private readonly dataService: DataService, private readonly store: Store<{}>) { diff --git a/frontend/app/components/capture_profile/capture_profile_dialog/BUILD b/frontend/app/components/capture_profile/capture_profile_dialog/BUILD index 84d09e687..dae38d462 100644 --- a/frontend/app/components/capture_profile/capture_profile_dialog/BUILD +++ b/frontend/app/components/capture_profile/capture_profile_dialog/BUILD @@ -19,13 +19,13 @@ xprof_ng_module( "@npm//@angular/forms", "@npm//@angular/platform-browser", "@org_xprof//frontend/app/common/angular:angular_material_button", + "@org_xprof//frontend/app/common/angular:angular_material_dialog", "@org_xprof//frontend/app/common/angular:angular_material_expansion", - "@org_xprof//frontend/app/common/angular:angular_material_legacy_dialog", - "@org_xprof//frontend/app/common/angular:angular_material_legacy_form_field", - "@org_xprof//frontend/app/common/angular:angular_material_legacy_input", - "@org_xprof//frontend/app/common/angular:angular_material_legacy_radio", - "@org_xprof//frontend/app/common/angular:angular_material_legacy_select", + "@org_xprof//frontend/app/common/angular:angular_material_form_field", + "@org_xprof//frontend/app/common/angular:angular_material_input", "@org_xprof//frontend/app/common/angular:angular_material_legacy_tooltip", + "@org_xprof//frontend/app/common/angular:angular_material_radio", + "@org_xprof//frontend/app/common/angular:angular_material_select", "@org_xprof//frontend/app/common/interfaces", ], ) diff --git a/frontend/app/components/capture_profile/capture_profile_dialog/capture_profile_dialog.ng.html b/frontend/app/components/capture_profile/capture_profile_dialog/capture_profile_dialog.ng.html index ecd13e0ae..e26c7fb47 100644 --- a/frontend/app/components/capture_profile/capture_profile_dialog/capture_profile_dialog.ng.html +++ b/frontend/app/components/capture_profile/capture_profile_dialog/capture_profile_dialog.ng.html @@ -29,17 +29,17 @@
+ Profiling duration(ms)
- + Host Trace (TraceMe) Level
- + Device Trace Level disable @@ -65,7 +65,7 @@
- + Python Trace Level disable diff --git a/frontend/app/components/capture_profile/capture_profile_dialog/capture_profile_dialog.ts b/frontend/app/components/capture_profile/capture_profile_dialog/capture_profile_dialog.ts index b8017398e..38e79313b 100644 --- a/frontend/app/components/capture_profile/capture_profile_dialog/capture_profile_dialog.ts +++ b/frontend/app/components/capture_profile/capture_profile_dialog/capture_profile_dialog.ts @@ -1,5 +1,5 @@ import {Component} from '@angular/core'; -import {MatLegacyDialogRef} from '@angular/material/legacy-dialog'; +import {MatDialogRef} from '@angular/material/dialog'; /** A capture profile dialog component. */ @Component({ @@ -25,7 +25,7 @@ export class CaptureProfileDialog { delay = 0; constructor(private readonly dialogRef: - MatLegacyDialogRef) {} + MatDialogRef) {} addressTypeChanged(value: string) { this.isTpuName = value === 'tpu'; diff --git a/frontend/app/components/capture_profile/capture_profile_dialog/capture_profile_dialog_module.ts b/frontend/app/components/capture_profile/capture_profile_dialog/capture_profile_dialog_module.ts index cfa0c9512..b42e89f71 100644 --- a/frontend/app/components/capture_profile/capture_profile_dialog/capture_profile_dialog_module.ts +++ b/frontend/app/components/capture_profile/capture_profile_dialog/capture_profile_dialog_module.ts @@ -3,11 +3,11 @@ import {NgModule} from '@angular/core'; import {FormsModule} from '@angular/forms'; import {MatExpansionModule} from '@angular/material/expansion'; import {MatButtonModule} from '@angular/material/button'; -import {MatLegacyDialogModule} from '@angular/material/legacy-dialog'; -import {MatLegacyFormFieldModule} from '@angular/material/legacy-form-field'; -import {MatLegacyInputModule} from '@angular/material/legacy-input'; -import {MatLegacyRadioModule} from '@angular/material/legacy-radio'; -import {MatLegacySelectModule} from '@angular/material/legacy-select'; +import {MatDialogModule} from '@angular/material/dialog'; +import {MatFormFieldModule} from '@angular/material/form-field'; +import {MatInputModule} from '@angular/material/input'; +import {MatRadioModule} from '@angular/material/radio'; +import {MatSelectModule} from '@angular/material/select'; import {MatLegacyTooltipModule} from '@angular/material/legacy-tooltip'; import {BrowserModule} from '@angular/platform-browser'; @@ -21,12 +21,12 @@ import {CaptureProfileDialog} from './capture_profile_dialog'; CommonModule, FormsModule, MatButtonModule, - MatLegacyDialogModule, + MatDialogModule, MatExpansionModule, - MatLegacyFormFieldModule, - MatLegacyInputModule, - MatLegacyRadioModule, - MatLegacySelectModule, + MatFormFieldModule, + MatInputModule, + MatRadioModule, + MatSelectModule, MatLegacyTooltipModule, ], exports: [CaptureProfileDialog] diff --git a/frontend/app/components/capture_profile/capture_profile_module.ts b/frontend/app/components/capture_profile/capture_profile_module.ts index 4c0a81be6..8c0882ba0 100644 --- a/frontend/app/components/capture_profile/capture_profile_module.ts +++ b/frontend/app/components/capture_profile/capture_profile_module.ts @@ -1,8 +1,8 @@ import {CommonModule} from '@angular/common'; import {NgModule} from '@angular/core'; import {MatButtonModule} from '@angular/material/button'; -import {MatLegacyDialogModule} from '@angular/material/legacy-dialog'; -import {MatLegacyProgressSpinnerModule} from '@angular/material/legacy-progress-spinner'; +import {MatDialogModule} from '@angular/material/dialog'; +import {MatProgressSpinnerModule} from '@angular/material/progress-spinner'; import {MatLegacySnackBarModule} from '@angular/material/legacy-snack-bar'; import {CaptureProfile} from './capture_profile'; @@ -15,8 +15,8 @@ import {CaptureProfileDialogModule} from './capture_profile_dialog/capture_profi imports: [ CommonModule, MatButtonModule, - MatLegacyDialogModule, - MatLegacyProgressSpinnerModule, + MatDialogModule, + MatProgressSpinnerModule, CaptureProfileDialogModule, MatLegacySnackBarModule, ], diff --git a/frontend/app/components/chart/table/BUILD b/frontend/app/components/chart/table/BUILD index e63d79102..c119dd83c 100644 --- a/frontend/app/components/chart/table/BUILD +++ b/frontend/app/components/chart/table/BUILD @@ -16,9 +16,9 @@ xprof_ng_module( deps = [ "@npm//@angular/core", "@npm//@types/google.visualization", - "@org_xprof//frontend/app/common/angular:angular_material_legacy_core", - "@org_xprof//frontend/app/common/angular:angular_material_legacy_form_field", - "@org_xprof//frontend/app/common/angular:angular_material_legacy_select", + "@org_xprof//frontend/app/common/angular:angular_material_core", + "@org_xprof//frontend/app/common/angular:angular_material_form_field", + "@org_xprof//frontend/app/common/angular:angular_material_select", ], ) diff --git a/frontend/app/components/chart/table/table.ng.html b/frontend/app/components/chart/table/table.ng.html index 190c310fa..1e84654b1 100644 --- a/frontend/app/components/chart/table/table.ng.html +++ b/frontend/app/components/chart/table/table.ng.html @@ -1,5 +1,5 @@
- + Rows per Page: {{option}} diff --git a/frontend/app/components/chart/table/table_module.ts b/frontend/app/components/chart/table/table_module.ts index cdf63d878..e6d310ca5 100644 --- a/frontend/app/components/chart/table/table_module.ts +++ b/frontend/app/components/chart/table/table_module.ts @@ -1,8 +1,8 @@ import {CommonModule} from '@angular/common'; import {NgModule} from '@angular/core'; -import {MatLegacyOptionModule} from '@angular/material/legacy-core'; -import {MatLegacyFormFieldModule} from '@angular/material/legacy-form-field'; -import {MatLegacySelectModule} from '@angular/material/legacy-select'; +import {MatOptionModule} from '@angular/material/core'; +import {MatFormFieldModule} from '@angular/material/form-field'; +import {MatSelectModule} from '@angular/material/select'; import {Table} from './table'; @@ -11,9 +11,9 @@ import {Table} from './table'; declarations: [Table], imports: [ CommonModule, - MatLegacyOptionModule, - MatLegacySelectModule, - MatLegacyFormFieldModule, + MatOptionModule, + MatSelectModule, + MatFormFieldModule, ], exports: [Table], }) diff --git a/frontend/app/components/controls/category_filter/BUILD b/frontend/app/components/controls/category_filter/BUILD index 712eb0489..a66af0024 100644 --- a/frontend/app/components/controls/category_filter/BUILD +++ b/frontend/app/components/controls/category_filter/BUILD @@ -17,9 +17,9 @@ xprof_ng_module( "@npm//@angular/common", "@npm//@angular/core", "@npm//@types/google.visualization", - "@org_xprof//frontend/app/common/angular:angular_material_legacy_core", - "@org_xprof//frontend/app/common/angular:angular_material_legacy_form_field", - "@org_xprof//frontend/app/common/angular:angular_material_legacy_select", + "@org_xprof//frontend/app/common/angular:angular_material_core", + "@org_xprof//frontend/app/common/angular:angular_material_form_field", + "@org_xprof//frontend/app/common/angular:angular_material_select", ], ) diff --git a/frontend/app/components/controls/category_filter/category_filter.ng.html b/frontend/app/components/controls/category_filter/category_filter.ng.html index d2b878a97..93d23713f 100644 --- a/frontend/app/components/controls/category_filter/category_filter.ng.html +++ b/frontend/app/components/controls/category_filter/category_filter.ng.html @@ -1,4 +1,4 @@ - + {{columnLabel}} {{option}} diff --git a/frontend/app/components/controls/category_filter/category_filter_module.ts b/frontend/app/components/controls/category_filter/category_filter_module.ts index d9c62ebaf..c503f65c2 100644 --- a/frontend/app/components/controls/category_filter/category_filter_module.ts +++ b/frontend/app/components/controls/category_filter/category_filter_module.ts @@ -1,8 +1,8 @@ import {CommonModule} from '@angular/common'; import {NgModule} from '@angular/core'; -import {MatLegacyOptionModule} from '@angular/material/legacy-core'; -import {MatLegacyFormFieldModule} from '@angular/material/legacy-form-field'; -import {MatLegacySelectModule} from '@angular/material/legacy-select'; +import {MatOptionModule} from '@angular/material/core'; +import {MatFormFieldModule} from '@angular/material/form-field'; +import {MatSelectModule} from '@angular/material/select'; import {CategoryFilter} from './category_filter'; @@ -11,9 +11,9 @@ import {CategoryFilter} from './category_filter'; declarations: [CategoryFilter], imports: [ CommonModule, - MatLegacyOptionModule, - MatLegacyFormFieldModule, - MatLegacySelectModule, + MatOptionModule, + MatFormFieldModule, + MatSelectModule, ], exports: [CategoryFilter], }) diff --git a/frontend/app/components/controls/string_filter/BUILD b/frontend/app/components/controls/string_filter/BUILD index dfec1b4dd..25992b4fe 100644 --- a/frontend/app/components/controls/string_filter/BUILD +++ b/frontend/app/components/controls/string_filter/BUILD @@ -17,9 +17,9 @@ xprof_ng_module( "@npm//@angular/common", "@npm//@angular/core", "@npm//@types/google.visualization", + "@org_xprof//frontend/app/common/angular:angular_material_form_field", "@org_xprof//frontend/app/common/angular:angular_material_icon", - "@org_xprof//frontend/app/common/angular:angular_material_legacy_form_field", - "@org_xprof//frontend/app/common/angular:angular_material_legacy_input", + "@org_xprof//frontend/app/common/angular:angular_material_input", ], ) diff --git a/frontend/app/components/controls/string_filter/string_filter.ng.html b/frontend/app/components/controls/string_filter/string_filter.ng.html index 6e673feda..d454a4f28 100644 --- a/frontend/app/components/controls/string_filter/string_filter.ng.html +++ b/frontend/app/components/controls/string_filter/string_filter.ng.html @@ -1,7 +1,7 @@ - + + {{columnLabel}} diff --git a/frontend/app/components/controls/string_filter/string_filter.scss b/frontend/app/components/controls/string_filter/string_filter.scss index ae2a78ccb..48aad8e9f 100644 --- a/frontend/app/components/controls/string_filter/string_filter.scss +++ b/frontend/app/components/controls/string_filter/string_filter.scss @@ -1,4 +1,4 @@ -/** CSS for a stats table component. */ +/** CSS for string filter component. */ @import 'frontend/app/styles/common'; @@ -6,3 +6,10 @@ mat-icon { color: $button-focus-color; vertical-align: bottom; } + +// This control class never works for unknown reason +// added inline style instead +.control { + width: 240px; + margin-right: 8px; +} diff --git a/frontend/app/components/controls/string_filter/string_filter_module.ts b/frontend/app/components/controls/string_filter/string_filter_module.ts index c97cc4a68..a53a78168 100644 --- a/frontend/app/components/controls/string_filter/string_filter_module.ts +++ b/frontend/app/components/controls/string_filter/string_filter_module.ts @@ -1,8 +1,8 @@ import {CommonModule} from '@angular/common'; import {NgModule} from '@angular/core'; import {MatIconModule} from '@angular/material/icon'; -import {MatLegacyFormFieldModule} from '@angular/material/legacy-form-field'; -import {MatLegacyInputModule} from '@angular/material/legacy-input'; +import {MatFormFieldModule} from '@angular/material/form-field'; +import {MatInputModule} from '@angular/material/input'; import {StringFilter} from './string_filter'; @@ -11,9 +11,9 @@ import {StringFilter} from './string_filter'; declarations: [StringFilter], imports: [ CommonModule, - MatLegacyFormFieldModule, + MatFormFieldModule, MatIconModule, - MatLegacyInputModule, + MatInputModule, ], exports: [StringFilter], }) diff --git a/frontend/app/components/graph_viewer/BUILD b/frontend/app/components/graph_viewer/BUILD index 552e60f9c..3097a77d9 100644 --- a/frontend/app/components/graph_viewer/BUILD +++ b/frontend/app/components/graph_viewer/BUILD @@ -19,8 +19,8 @@ xprof_ng_module( "@npm//@angular/router", "@npm//@ngrx/store", "@npm//rxjs", - "@org_xprof//frontend/app/common/angular:angular_material_legacy_core", - "@org_xprof//frontend/app/common/angular:angular_material_legacy_progress_bar", + "@org_xprof//frontend/app/common/angular:angular_material_core", + "@org_xprof//frontend/app/common/angular:angular_material_progress_bar", "@org_xprof//frontend/app/common/angular:angular_material_sidenav", "@org_xprof//frontend/app/common/constants", "@org_xprof//frontend/app/common/interfaces", diff --git a/frontend/app/components/graph_viewer/graph_config/BUILD b/frontend/app/components/graph_viewer/graph_config/BUILD index 4d67e0bff..26d9d5555 100644 --- a/frontend/app/components/graph_viewer/graph_config/BUILD +++ b/frontend/app/components/graph_viewer/graph_config/BUILD @@ -19,13 +19,13 @@ xprof_ng_module( "@npm//@angular/forms", "@npm//rxjs", "@org_xprof//frontend/app/common/angular:angular_material_button", + "@org_xprof//frontend/app/common/angular:angular_material_checkbox", + "@org_xprof//frontend/app/common/angular:angular_material_core", + "@org_xprof//frontend/app/common/angular:angular_material_form_field", "@org_xprof//frontend/app/common/angular:angular_material_icon", - "@org_xprof//frontend/app/common/angular:angular_material_legacy_checkbox", - "@org_xprof//frontend/app/common/angular:angular_material_legacy_core", - "@org_xprof//frontend/app/common/angular:angular_material_legacy_form_field", - "@org_xprof//frontend/app/common/angular:angular_material_legacy_input", - "@org_xprof//frontend/app/common/angular:angular_material_legacy_select", + "@org_xprof//frontend/app/common/angular:angular_material_input", "@org_xprof//frontend/app/common/angular:angular_material_legacy_tooltip", + "@org_xprof//frontend/app/common/angular:angular_material_select", "@org_xprof//frontend/app/common/angular:angular_material_sidenav", "@org_xprof//frontend/app/common/interfaces", ], diff --git a/frontend/app/components/graph_viewer/graph_config/graph_config.ng.html b/frontend/app/components/graph_viewer/graph_config/graph_config.ng.html index 284a99eb0..c7bd2fa1f 100644 --- a/frontend/app/components/graph_viewer/graph_config/graph_config.ng.html +++ b/frontend/app/components/graph_viewer/graph_config/graph_config.ng.html @@ -1,11 +1,11 @@ -
+
XLA Modules ({{ moduleList.length }})
- + -
+
-
+
Loading graph viewer data
- + diff --git a/frontend/app/components/graph_viewer/graph_viewer.scss b/frontend/app/components/graph_viewer/graph_viewer.scss index 71f237361..b84b87548 100644 --- a/frontend/app/components/graph_viewer/graph_viewer.scss +++ b/frontend/app/components/graph_viewer/graph_viewer.scss @@ -6,14 +6,14 @@ padding: 20px 20px 0; } -.row { - display: flex; -} - mat-sidenav { - @include border-right-gray; background: transparent; - width: 340px; + width: 25%; + min-width: 350px; +} + +mat-sidenav-content { + width: 75%; } mat-sidenav-container { @@ -25,7 +25,7 @@ iframe { top: 0; width: 100%; height: 100%; - box-sizing: border-box; + border: none; } mat-progress-bar { @@ -41,6 +41,6 @@ mat-progress-bar { .progress-container { position: absolute; width: 100%; - margin: 300 0; + margin: 300px 0; z-index: 1; } diff --git a/frontend/app/components/graph_viewer/graph_viewer.ts b/frontend/app/components/graph_viewer/graph_viewer.ts index ca54aead3..779f56421 100644 --- a/frontend/app/components/graph_viewer/graph_viewer.ts +++ b/frontend/app/components/graph_viewer/graph_viewer.ts @@ -86,8 +86,18 @@ export class GraphViewer implements OnDestroy { return this.opName && this.selectedModule; } + setLoadingStatus(loading: boolean, diagnostics?: Diagnostics) { + this.loading = loading; + this.diagnostics = diagnostics || {...DIAGNOSTICS_DEFAULT}; + } + + onIframeLoaded() { + this.setLoadingStatus(false); + } + onPlot() { if (!this.validToPlot()) return; + this.setLoadingStatus(true); // Update the query parameters in url after form updates const queryParams: GraphViewerQueryParams = { diff --git a/frontend/app/components/graph_viewer/graph_viewer_module.ts b/frontend/app/components/graph_viewer/graph_viewer_module.ts index 80fe213ba..3095da1ca 100644 --- a/frontend/app/components/graph_viewer/graph_viewer_module.ts +++ b/frontend/app/components/graph_viewer/graph_viewer_module.ts @@ -1,7 +1,7 @@ import {CommonModule} from '@angular/common'; import {NgModule} from '@angular/core'; -import {MatLegacyOptionModule} from '@angular/material/legacy-core'; -import {MatLegacyProgressBarModule} from '@angular/material/legacy-progress-bar'; +import {MatOptionModule} from '@angular/material/core'; +import {MatProgressBarModule} from '@angular/material/progress-bar'; import {MatSidenavModule} from '@angular/material/sidenav'; import {DiagnosticsViewModule} from 'org_xprof/frontend/app/components/diagnostics_view/diagnostics_view_module'; import {GraphConfigModule} from 'org_xprof/frontend/app/components/graph_viewer/graph_config/graph_config_module'; @@ -13,8 +13,8 @@ import {GraphViewer} from './graph_viewer'; imports: [ CommonModule, DiagnosticsViewModule, - MatLegacyOptionModule, - MatLegacyProgressBarModule, + MatOptionModule, + MatProgressBarModule, MatSidenavModule, PipesModule, GraphConfigModule, diff --git a/frontend/app/components/kernel_stats/kernel_stats_table/BUILD b/frontend/app/components/kernel_stats/kernel_stats_table/BUILD index c5dd757f0..2fbea08e6 100644 --- a/frontend/app/components/kernel_stats/kernel_stats_table/BUILD +++ b/frontend/app/components/kernel_stats/kernel_stats_table/BUILD @@ -16,9 +16,9 @@ xprof_ng_module( deps = [ "@npm//@angular/core", "@npm//@types/google.visualization", + "@org_xprof//frontend/app/common/angular:angular_material_form_field", "@org_xprof//frontend/app/common/angular:angular_material_icon", - "@org_xprof//frontend/app/common/angular:angular_material_legacy_form_field", - "@org_xprof//frontend/app/common/angular:angular_material_legacy_input", + "@org_xprof//frontend/app/common/angular:angular_material_input", "@org_xprof//frontend/app/common/interfaces", ], ) diff --git a/frontend/app/components/kernel_stats/kernel_stats_table/kernel_stats_table_module.ts b/frontend/app/components/kernel_stats/kernel_stats_table/kernel_stats_table_module.ts index 5b27fe337..6ce0ea9d5 100644 --- a/frontend/app/components/kernel_stats/kernel_stats_table/kernel_stats_table_module.ts +++ b/frontend/app/components/kernel_stats/kernel_stats_table/kernel_stats_table_module.ts @@ -1,16 +1,16 @@ import {NgModule} from '@angular/core'; import {MatIconModule} from '@angular/material/icon'; -import {MatLegacyFormFieldModule} from '@angular/material/legacy-form-field'; -import {MatLegacyInputModule} from '@angular/material/legacy-input'; +import {MatFormFieldModule} from '@angular/material/form-field'; +import {MatInputModule} from '@angular/material/input'; import {KernelStatsTable} from './kernel_stats_table'; @NgModule({ declarations: [KernelStatsTable], imports: [ - MatLegacyFormFieldModule, + MatFormFieldModule, MatIconModule, - MatLegacyInputModule, + MatInputModule, ], exports: [KernelStatsTable] }) diff --git a/frontend/app/components/main_page/BUILD b/frontend/app/components/main_page/BUILD index 3b324cc1a..b53eae142 100644 --- a/frontend/app/components/main_page/BUILD +++ b/frontend/app/components/main_page/BUILD @@ -14,11 +14,12 @@ xprof_ng_module( "main_page.ng.html", ], deps = [ + "@npm//@angular/common", "@npm//@angular/core", "@npm//@angular/router", "@npm//@ngrx/store", "@npm//rxjs", - "@org_xprof//frontend/app/common/angular:angular_material_legacy_progress_bar", + "@org_xprof//frontend/app/common/angular:angular_material_progress_bar", "@org_xprof//frontend/app/common/angular:angular_material_sidenav", "@org_xprof//frontend/app/common/constants", "@org_xprof//frontend/app/common/interfaces", diff --git a/frontend/app/components/main_page/main_page.ng.html b/frontend/app/components/main_page/main_page.ng.html index 9f16353b2..9892b5500 100644 --- a/frontend/app/components/main_page/main_page.ng.html +++ b/frontend/app/components/main_page/main_page.ng.html @@ -3,7 +3,7 @@ -
+
{{loadingMessage}}
diff --git a/frontend/app/components/main_page/main_page_module.ts b/frontend/app/components/main_page/main_page_module.ts index 8bb411b89..e81fc956e 100644 --- a/frontend/app/components/main_page/main_page_module.ts +++ b/frontend/app/components/main_page/main_page_module.ts @@ -1,5 +1,6 @@ +import {CommonModule} from '@angular/common'; import {NgModule} from '@angular/core'; -import {MatLegacyProgressBarModule} from '@angular/material/legacy-progress-bar'; +import {MatProgressBarModule} from '@angular/material/progress-bar'; import {MatSidenavModule} from '@angular/material/sidenav'; import {RouterModule, Routes} from '@angular/router'; import {DcnCollectiveStats} from 'org_xprof/frontend/app/components/dcn_collective_stats/dcn_collective_stats'; @@ -65,7 +66,8 @@ export const routes: Routes = [ @NgModule({ declarations: [MainPage], imports: [ - MatLegacyProgressBarModule, + CommonModule, + MatProgressBarModule, MatSidenavModule, EmptyPageModule, SideNavModule, diff --git a/frontend/app/components/memory_profile/BUILD b/frontend/app/components/memory_profile/BUILD index 258db015d..fc3efa286 100644 --- a/frontend/app/components/memory_profile/BUILD +++ b/frontend/app/components/memory_profile/BUILD @@ -20,10 +20,10 @@ xprof_ng_module( "@npm//@angular/router", "@npm//@ngrx/store", "@npm//rxjs", + "@org_xprof//frontend/app/common/angular:angular_material_core", "@org_xprof//frontend/app/common/angular:angular_material_divider", "@org_xprof//frontend/app/common/angular:angular_material_icon", - "@org_xprof//frontend/app/common/angular:angular_material_legacy_core", - "@org_xprof//frontend/app/common/angular:angular_material_legacy_select", + "@org_xprof//frontend/app/common/angular:angular_material_select", "@org_xprof//frontend/app/common/interfaces", "@org_xprof//frontend/app/components/memory_profile/memory_breakdown_table", "@org_xprof//frontend/app/components/memory_profile/memory_profile_summary", diff --git a/frontend/app/components/memory_profile/memory_breakdown_table/BUILD b/frontend/app/components/memory_profile/memory_breakdown_table/BUILD index b03d42b82..db0971f18 100644 --- a/frontend/app/components/memory_profile/memory_breakdown_table/BUILD +++ b/frontend/app/components/memory_profile/memory_breakdown_table/BUILD @@ -16,9 +16,9 @@ xprof_ng_module( deps = [ "@npm//@angular/core", "@npm//@types/google.visualization", + "@org_xprof//frontend/app/common/angular:angular_material_form_field", "@org_xprof//frontend/app/common/angular:angular_material_icon", - "@org_xprof//frontend/app/common/angular:angular_material_legacy_form_field", - "@org_xprof//frontend/app/common/angular:angular_material_legacy_input", + "@org_xprof//frontend/app/common/angular:angular_material_input", "@org_xprof//frontend/app/common/interfaces", "@org_xprof//frontend/app/common/interfaces:memory_profile_proto_defs", "@org_xprof//frontend/app/common/utils", diff --git a/frontend/app/components/memory_profile/memory_breakdown_table/memory_breakdown_table_module.ts b/frontend/app/components/memory_profile/memory_breakdown_table/memory_breakdown_table_module.ts index aab29844a..5dbd902c8 100644 --- a/frontend/app/components/memory_profile/memory_breakdown_table/memory_breakdown_table_module.ts +++ b/frontend/app/components/memory_profile/memory_breakdown_table/memory_breakdown_table_module.ts @@ -1,16 +1,16 @@ import {NgModule} from '@angular/core'; import {MatIconModule} from '@angular/material/icon'; -import {MatLegacyFormFieldModule} from '@angular/material/legacy-form-field'; -import {MatLegacyInputModule} from '@angular/material/legacy-input'; +import {MatFormFieldModule} from '@angular/material/form-field'; +import {MatInputModule} from '@angular/material/input'; import {MemoryBreakdownTable} from './memory_breakdown_table'; @NgModule({ declarations: [MemoryBreakdownTable], imports: [ - MatLegacyFormFieldModule, + MatFormFieldModule, MatIconModule, - MatLegacyInputModule, + MatInputModule, ], exports: [MemoryBreakdownTable] }) diff --git a/frontend/app/components/memory_profile/memory_profile.ng.html b/frontend/app/components/memory_profile/memory_profile.ng.html index 350fa28f0..29c0edb2f 100644 --- a/frontend/app/components/memory_profile/memory_profile.ng.html +++ b/frontend/app/components/memory_profile/memory_profile.ng.html @@ -15,7 +15,7 @@
show memory profile for selected device
- + {{ id }} diff --git a/frontend/app/components/memory_profile/memory_profile_common.scss b/frontend/app/components/memory_profile/memory_profile_common.scss index 925b37700..42b640d17 100644 --- a/frontend/app/components/memory_profile/memory_profile_common.scss +++ b/frontend/app/components/memory_profile/memory_profile_common.scss @@ -62,6 +62,6 @@ mat-form-field { margin-bottom: 0; } -.mat-form-field { +.mat-mdc-form-field { padding-left: 10px; } diff --git a/frontend/app/components/memory_profile/memory_profile_module.ts b/frontend/app/components/memory_profile/memory_profile_module.ts index 31ef4a5d0..1e3a0d9cc 100644 --- a/frontend/app/components/memory_profile/memory_profile_module.ts +++ b/frontend/app/components/memory_profile/memory_profile_module.ts @@ -2,8 +2,8 @@ import {CommonModule} from '@angular/common'; import {NgModule} from '@angular/core'; import {MatDividerModule} from '@angular/material/divider'; import {MatIconModule} from '@angular/material/icon'; -import {MatLegacyOptionModule} from '@angular/material/legacy-core'; -import {MatLegacySelectModule} from '@angular/material/legacy-select'; +import {MatOptionModule} from '@angular/material/core'; +import {MatSelectModule} from '@angular/material/select'; import {MemoryBreakdownTableModule} from 'org_xprof/frontend/app/components/memory_profile/memory_breakdown_table/memory_breakdown_table_module'; import {MemoryProfileSummaryModule} from 'org_xprof/frontend/app/components/memory_profile/memory_profile_summary/memory_profile_summary_module'; import {MemoryTimelineGraphModule} from 'org_xprof/frontend/app/components/memory_profile/memory_timeline_graph/memory_timeline_graph_module'; @@ -17,8 +17,8 @@ import {MemoryProfile} from './memory_profile'; CommonModule, MatDividerModule, MatIconModule, - MatLegacySelectModule, - MatLegacyOptionModule, + MatSelectModule, + MatOptionModule, MemoryProfileSummaryModule, MemoryTimelineGraphModule, MemoryBreakdownTableModule, diff --git a/frontend/app/components/memory_profile/memory_profile_summary/BUILD b/frontend/app/components/memory_profile/memory_profile_summary/BUILD index f87f52b4d..2f68bd07a 100644 --- a/frontend/app/components/memory_profile/memory_profile_summary/BUILD +++ b/frontend/app/components/memory_profile/memory_profile_summary/BUILD @@ -1,5 +1,5 @@ -load("//defs:defs.bzl", "xprof_ng_module") load("@io_bazel_rules_sass//:defs.bzl", "sass_binary") +load("//defs:defs.bzl", "xprof_ng_module") package(default_visibility = ["//frontend:internal"]) diff --git a/frontend/app/components/memory_profile/memory_timeline_graph/BUILD b/frontend/app/components/memory_profile/memory_timeline_graph/BUILD index a892502e6..ffa9becee 100644 --- a/frontend/app/components/memory_profile/memory_timeline_graph/BUILD +++ b/frontend/app/components/memory_profile/memory_timeline_graph/BUILD @@ -1,5 +1,5 @@ -load("//defs:defs.bzl", "xprof_ng_module") load("@io_bazel_rules_sass//:defs.bzl", "sass_binary") +load("//defs:defs.bzl", "xprof_ng_module") package(default_visibility = ["//frontend:internal"]) diff --git a/frontend/app/components/memory_viewer/buffer_details/BUILD b/frontend/app/components/memory_viewer/buffer_details/BUILD index 44aaef215..f097c502c 100644 --- a/frontend/app/components/memory_viewer/buffer_details/BUILD +++ b/frontend/app/components/memory_viewer/buffer_details/BUILD @@ -1,5 +1,5 @@ -load("//defs:defs.bzl", "xprof_ng_module") load("@io_bazel_rules_sass//:defs.bzl", "sass_binary") +load("//defs:defs.bzl", "xprof_ng_module") package(default_visibility = ["//frontend:internal"]) diff --git a/frontend/app/components/memory_viewer/memory_viewer_main/BUILD b/frontend/app/components/memory_viewer/memory_viewer_main/BUILD index 05424fa0f..1a97124bf 100644 --- a/frontend/app/components/memory_viewer/memory_viewer_main/BUILD +++ b/frontend/app/components/memory_viewer/memory_viewer_main/BUILD @@ -18,9 +18,9 @@ xprof_ng_module( "@npm//@angular/forms", "@npm//@angular/router", "@npm//@ngrx/store", + "@org_xprof//frontend/app/common/angular:angular_material_checkbox", "@org_xprof//frontend/app/common/angular:angular_material_divider", "@org_xprof//frontend/app/common/angular:angular_material_icon", - "@org_xprof//frontend/app/common/angular:angular_material_legacy_checkbox", "@org_xprof//frontend/app/common/angular:angular_material_legacy_tooltip", "@org_xprof//frontend/app/common/interfaces", "@org_xprof//frontend/app/common/utils", diff --git a/frontend/app/components/memory_viewer/memory_viewer_main/memory_viewer_main_module.ts b/frontend/app/components/memory_viewer/memory_viewer_main/memory_viewer_main_module.ts index 93616f4cb..f057b0fcc 100644 --- a/frontend/app/components/memory_viewer/memory_viewer_main/memory_viewer_main_module.ts +++ b/frontend/app/components/memory_viewer/memory_viewer_main/memory_viewer_main_module.ts @@ -2,7 +2,7 @@ import {NgModule} from '@angular/core'; import {FormsModule} from '@angular/forms'; import {MatDividerModule} from '@angular/material/divider'; import {MatIconModule} from '@angular/material/icon'; -import {MatLegacyCheckboxModule} from '@angular/material/legacy-checkbox'; +import {MatCheckboxModule} from '@angular/material/checkbox'; import {MatLegacyTooltipModule} from '@angular/material/legacy-tooltip'; import {DiagnosticsViewModule} from 'org_xprof/frontend/app/components/diagnostics_view/diagnostics_view_module'; import {MaxHeapChartModule} from 'org_xprof/frontend/app/components/memory_viewer/max_heap_chart/max_heap_chart_module'; @@ -18,7 +18,7 @@ import {MemoryViewerMain} from './memory_viewer_main'; FormsModule, MatDividerModule, MaxHeapChartModule, - MatLegacyCheckboxModule, + MatCheckboxModule, MatIconModule, MatLegacyTooltipModule, ProgramOrderChartModule, diff --git a/frontend/app/components/op_profile/BUILD b/frontend/app/components/op_profile/BUILD index 9a40cdac2..01ad7982b 100644 --- a/frontend/app/components/op_profile/BUILD +++ b/frontend/app/components/op_profile/BUILD @@ -20,9 +20,9 @@ xprof_ng_module( "@npm//@angular/router", "@npm//@ngrx/store", "@npm//rxjs", + "@org_xprof//frontend/app/common/angular:angular_material_form_field", "@org_xprof//frontend/app/common/angular:angular_material_icon", - "@org_xprof//frontend/app/common/angular:angular_material_legacy_form_field", - "@org_xprof//frontend/app/common/angular:angular_material_legacy_input", + "@org_xprof//frontend/app/common/angular:angular_material_input", "@org_xprof//frontend/app/common/angular:angular_material_legacy_slide_toggle", "@org_xprof//frontend/app/common/angular:angular_material_legacy_slider", "@org_xprof//frontend/app/common/angular:angular_material_legacy_tooltip", diff --git a/frontend/app/components/op_profile/op_details/op_details.scss b/frontend/app/components/op_profile/op_details/op_details.scss index 500945b3f..e57b89f32 100644 --- a/frontend/app/components/op_profile/op_details/op_details.scss +++ b/frontend/app/components/op_profile/op_details/op_details.scss @@ -98,7 +98,8 @@ mat-card { display: table-cell; } -.size, .size-x { +.size, +.size-x { text-align: center; width: 20%; } diff --git a/frontend/app/components/op_profile/op_profile.ng.html b/frontend/app/components/op_profile/op_profile.ng.html index e7618aaf2..4ad127a59 100644 --- a/frontend/app/components/op_profile/op_profile.ng.html +++ b/frontend/app/components/op_profile/op_profile.ng.html @@ -32,27 +32,20 @@
Show top  - + + # + (change)="updateChildrenCount($event.target.value)" />  ops
-
- - -
Sort by wasted time diff --git a/frontend/app/components/op_profile/op_profile_module.ts b/frontend/app/components/op_profile/op_profile_module.ts index 5b538a7fa..53a3288be 100644 --- a/frontend/app/components/op_profile/op_profile_module.ts +++ b/frontend/app/components/op_profile/op_profile_module.ts @@ -1,7 +1,7 @@ import {NgModule} from '@angular/core'; import {MatIconModule} from '@angular/material/icon'; -import {MatLegacyFormFieldModule} from '@angular/material/legacy-form-field'; -import {MatLegacyInputModule} from '@angular/material/legacy-input'; +import {MatFormFieldModule} from '@angular/material/form-field'; +import {MatInputModule} from '@angular/material/input'; import {MatLegacySlideToggleModule} from '@angular/material/legacy-slide-toggle'; import {MatLegacySliderModule} from '@angular/material/legacy-slider'; import {MatLegacyTooltipModule} from '@angular/material/legacy-tooltip'; @@ -13,8 +13,8 @@ import {OpTableModule} from './op_table/op_table_module'; @NgModule({ declarations: [OpProfile], imports: [ - MatLegacyFormFieldModule, - MatLegacyInputModule, + MatFormFieldModule, + MatInputModule, MatLegacySliderModule, MatLegacySlideToggleModule, OpTableModule, diff --git a/frontend/app/components/overview/performance_summary/BUILD b/frontend/app/components/overview/performance_summary/BUILD index a060da080..2a2bd19dd 100644 --- a/frontend/app/components/overview/performance_summary/BUILD +++ b/frontend/app/components/overview/performance_summary/BUILD @@ -1,5 +1,5 @@ -load("//defs:defs.bzl", "xprof_ng_module") load("@io_bazel_rules_sass//:defs.bzl", "sass_binary") +load("//defs:defs.bzl", "xprof_ng_module") package(default_visibility = ["//frontend:internal"]) diff --git a/frontend/app/components/overview/recommendation_result_view/BUILD b/frontend/app/components/overview/recommendation_result_view/BUILD index 91175116e..d81754afb 100644 --- a/frontend/app/components/overview/recommendation_result_view/BUILD +++ b/frontend/app/components/overview/recommendation_result_view/BUILD @@ -1,5 +1,5 @@ -load("//defs:defs.bzl", "xprof_ng_module") load("@io_bazel_rules_sass//:defs.bzl", "sass_binary") +load("//defs:defs.bzl", "xprof_ng_module") package(default_visibility = ["//frontend:internal"]) diff --git a/frontend/app/components/overview/run_environment_view/BUILD b/frontend/app/components/overview/run_environment_view/BUILD index 106fd5083..817c96c19 100644 --- a/frontend/app/components/overview/run_environment_view/BUILD +++ b/frontend/app/components/overview/run_environment_view/BUILD @@ -1,5 +1,5 @@ -load("//defs:defs.bzl", "xprof_ng_module") load("@io_bazel_rules_sass//:defs.bzl", "sass_binary") +load("//defs:defs.bzl", "xprof_ng_module") package(default_visibility = ["//frontend:internal"]) diff --git a/frontend/app/components/overview/step_time_graph/BUILD b/frontend/app/components/overview/step_time_graph/BUILD index cb0e0090e..3aee8c54e 100644 --- a/frontend/app/components/overview/step_time_graph/BUILD +++ b/frontend/app/components/overview/step_time_graph/BUILD @@ -1,5 +1,5 @@ -load("//defs:defs.bzl", "xprof_ng_module") load("@io_bazel_rules_sass//:defs.bzl", "sass_binary") +load("//defs:defs.bzl", "xprof_ng_module") package(default_visibility = ["//frontend:internal"]) diff --git a/frontend/app/components/pod_viewer/pod_viewer_details/BUILD b/frontend/app/components/pod_viewer/pod_viewer_details/BUILD index ef0714af5..62c5055cd 100644 --- a/frontend/app/components/pod_viewer/pod_viewer_details/BUILD +++ b/frontend/app/components/pod_viewer/pod_viewer_details/BUILD @@ -1,5 +1,5 @@ -load("//defs:defs.bzl", "xprof_ng_module") load("@io_bazel_rules_sass//:defs.bzl", "sass_binary") +load("//defs:defs.bzl", "xprof_ng_module") package(default_visibility = ["//frontend:internal"]) diff --git a/frontend/app/components/pod_viewer/topology_graph/BUILD b/frontend/app/components/pod_viewer/topology_graph/BUILD index 390592597..164fc1adf 100644 --- a/frontend/app/components/pod_viewer/topology_graph/BUILD +++ b/frontend/app/components/pod_viewer/topology_graph/BUILD @@ -19,11 +19,11 @@ xprof_ng_module( "@npm//@ngrx/store", "@npm//rxjs", "@org_xprof//frontend/app/common/angular:angular_material_button", + "@org_xprof//frontend/app/common/angular:angular_material_form_field", "@org_xprof//frontend/app/common/angular:angular_material_icon", - "@org_xprof//frontend/app/common/angular:angular_material_legacy_form_field", - "@org_xprof//frontend/app/common/angular:angular_material_legacy_input", - "@org_xprof//frontend/app/common/angular:angular_material_legacy_menu", + "@org_xprof//frontend/app/common/angular:angular_material_input", "@org_xprof//frontend/app/common/angular:angular_material_legacy_slider", + "@org_xprof//frontend/app/common/angular:angular_material_menu", "@org_xprof//frontend/app/common/constants", "@org_xprof//frontend/app/common/interfaces", "@org_xprof//frontend/app/common/utils", diff --git a/frontend/app/components/pod_viewer/topology_graph/topology_graph.ng.html b/frontend/app/components/pod_viewer/topology_graph/topology_graph.ng.html index b0452f145..09bf07e47 100644 --- a/frontend/app/components/pod_viewer/topology_graph/topology_graph.ng.html +++ b/frontend/app/components/pod_viewer/topology_graph/topology_graph.ng.html @@ -29,7 +29,8 @@ [value]="selectedChannelIndex" (change)="updateChannelIndex($event.value)"> - + + Channel id - + {{run}} @@ -21,7 +21,7 @@ Tools ({{tags.length}})
- + {{getDisplayTagName(tag)}} @@ -35,7 +35,7 @@ {{hostSelectorDisplayName}}
- + {{host}} diff --git a/frontend/app/components/sidenav/sidenav_module.ts b/frontend/app/components/sidenav/sidenav_module.ts index 78942ab23..3855f480e 100644 --- a/frontend/app/components/sidenav/sidenav_module.ts +++ b/frontend/app/components/sidenav/sidenav_module.ts @@ -1,8 +1,8 @@ import {CommonModule} from '@angular/common'; import {NgModule} from '@angular/core'; -import {MatLegacyOptionModule} from '@angular/material/legacy-core'; -import {MatLegacyFormFieldModule} from '@angular/material/legacy-form-field'; -import {MatLegacySelectModule} from '@angular/material/legacy-select'; +import {MatOptionModule} from '@angular/material/core'; +import {MatFormFieldModule} from '@angular/material/form-field'; +import {MatSelectModule} from '@angular/material/select'; import {CaptureProfileModule} from 'org_xprof/frontend/app/components/capture_profile/capture_profile_module'; import {BufferDetailsModule} from 'org_xprof/frontend/app/components/memory_viewer/buffer_details/buffer_details_module'; import {OpDetailsModule} from 'org_xprof/frontend/app/components/op_profile/op_details/op_details_module'; @@ -15,9 +15,9 @@ import {SideNav} from './sidenav'; declarations: [SideNav], imports: [ CommonModule, - MatLegacyFormFieldModule, - MatLegacySelectModule, - MatLegacyOptionModule, + MatFormFieldModule, + MatSelectModule, + MatOptionModule, BufferDetailsModule, CaptureProfileModule, OpDetailsModule, diff --git a/frontend/app/components/tensorflow_stats/BUILD b/frontend/app/components/tensorflow_stats/BUILD index 293d3fb2b..fe7d4e30c 100644 --- a/frontend/app/components/tensorflow_stats/BUILD +++ b/frontend/app/components/tensorflow_stats/BUILD @@ -38,7 +38,7 @@ xprof_ng_module( "@org_xprof//frontend/app/common/angular:angular_material_button", "@org_xprof//frontend/app/common/angular:angular_material_divider", "@org_xprof//frontend/app/common/angular:angular_material_icon", - "@org_xprof//frontend/app/common/angular:angular_material_legacy_menu", + "@org_xprof//frontend/app/common/angular:angular_material_menu", "@org_xprof//frontend/app/common/constants", "@org_xprof//frontend/app/common/interfaces", "@org_xprof//frontend/app/common/interfaces:chart", diff --git a/frontend/app/components/tensorflow_stats/stats_table/BUILD b/frontend/app/components/tensorflow_stats/stats_table/BUILD index 414767bc7..589afe842 100644 --- a/frontend/app/components/tensorflow_stats/stats_table/BUILD +++ b/frontend/app/components/tensorflow_stats/stats_table/BUILD @@ -16,9 +16,9 @@ xprof_ng_module( deps = [ ":stats_table_data_provider", "@npm//@angular/core", + "@org_xprof//frontend/app/common/angular:angular_material_form_field", "@org_xprof//frontend/app/common/angular:angular_material_icon", - "@org_xprof//frontend/app/common/angular:angular_material_legacy_form_field", - "@org_xprof//frontend/app/common/angular:angular_material_legacy_input", + "@org_xprof//frontend/app/common/angular:angular_material_input", "@org_xprof//frontend/app/common/interfaces", "@org_xprof//frontend/app/common/interfaces:chart", "@org_xprof//frontend/app/components/chart", diff --git a/frontend/app/components/tensorflow_stats/stats_table/stats_table.ng.html b/frontend/app/components/tensorflow_stats/stats_table/stats_table.ng.html index 556c3fa29..fb458eb19 100644 --- a/frontend/app/components/tensorflow_stats/stats_table/stats_table.ng.html +++ b/frontend/app/components/tensorflow_stats/stats_table/stats_table.ng.html @@ -1,27 +1,27 @@
TensorFlow operations
+ Host/device + (change)="filterExecutor = $event.target.value; updateFilters();"> search + Type + (change)="filterType = $event.target.value; updateFilters();"> search + Operation + (change)="filterOperation = $event.target.value; updateFilters();"> search
diff --git a/frontend/app/components/tensorflow_stats/stats_table/stats_table_module.ts b/frontend/app/components/tensorflow_stats/stats_table/stats_table_module.ts index 23a6d33b4..ec6557b36 100644 --- a/frontend/app/components/tensorflow_stats/stats_table/stats_table_module.ts +++ b/frontend/app/components/tensorflow_stats/stats_table/stats_table_module.ts @@ -1,8 +1,8 @@ import {CommonModule} from '@angular/common'; import {NgModule} from '@angular/core'; import {MatIconModule} from '@angular/material/icon'; -import {MatLegacyFormFieldModule} from '@angular/material/legacy-form-field'; -import {MatLegacyInputModule} from '@angular/material/legacy-input'; +import {MatFormFieldModule} from '@angular/material/form-field'; +import {MatInputModule} from '@angular/material/input'; import {ChartModule} from 'org_xprof/frontend/app/components/chart/chart'; import {StatsTable} from './stats_table'; @@ -11,9 +11,9 @@ import {StatsTable} from './stats_table'; declarations: [StatsTable], imports: [ CommonModule, - MatLegacyFormFieldModule, + MatFormFieldModule, MatIconModule, - MatLegacyInputModule, + MatInputModule, ChartModule, ], exports: [StatsTable], diff --git a/frontend/app/components/tensorflow_stats/tensorflow_stats_module.ts b/frontend/app/components/tensorflow_stats/tensorflow_stats_module.ts index 7fe602bf6..397c418d0 100644 --- a/frontend/app/components/tensorflow_stats/tensorflow_stats_module.ts +++ b/frontend/app/components/tensorflow_stats/tensorflow_stats_module.ts @@ -3,7 +3,7 @@ import {NgModule} from '@angular/core'; import {MatDividerModule} from '@angular/material/divider'; import {MatIconModule} from '@angular/material/icon'; import {MatButtonModule} from '@angular/material/button'; -import {MatLegacyMenuModule} from '@angular/material/legacy-menu'; +import {MatMenuModule} from '@angular/material/menu'; import {ChartModule} from 'org_xprof/frontend/app/components/chart/chart'; import {ExportAsCsvModule} from 'org_xprof/frontend/app/components/controls/export_as_csv/export_as_csv_module'; import {FlopRateChartModule} from 'org_xprof/frontend/app/components/tensorflow_stats/flop_rate_chart/flop_rate_chart_module'; @@ -21,7 +21,7 @@ import {TensorflowStats} from './tensorflow_stats'; MatButtonModule, MatDividerModule, MatIconModule, - MatLegacyMenuModule, + MatMenuModule, ChartModule, ExportAsCsvModule, FlopRateChartModule, diff --git a/frontend/app/styles/common.scss b/frontend/app/styles/common.scss index 59b510354..81d3c6a6c 100644 --- a/frontend/app/styles/common.scss +++ b/frontend/app/styles/common.scss @@ -48,6 +48,11 @@ $dark-theme-card-title-color: #fff; padding: 20px 20px 0; } +.row { + display: flex; + align-items: center; +} + mat-card { // MDC mat-card does not have padding by default // Add padding to keep style persistent during migration diff --git a/frontend/styles.scss b/frontend/styles.scss index 234b9bbb0..cb4931538 100644 --- a/frontend/styles.scss +++ b/frontend/styles.scss @@ -29,6 +29,17 @@ $theme: mat.define-light-theme( @include mat.button-theme($theme); @include mat.icon-button-theme($theme); @include mat.card-theme($theme); +@include mat.autocomplete-theme($theme); +@include mat.core-theme($theme); +@include mat.input-theme($theme); +@include mat.form-field-theme($theme); +@include mat.checkbox-theme($theme); +@include mat.select-theme($theme); +@include mat.menu-theme($theme); +@include mat.dialog-theme($theme); +@include mat.progress-spinner-theme($theme); +@include mat.progress-bar-theme($theme); +@include mat.radio-theme($theme); html, body { height: 100%; @@ -104,7 +115,7 @@ sidenav mat-form-field .mat-select-value { color: #777; } -op-profile .ops-control .mat-form-field { +op-profile .ops-control .mat-mdc-form-field { text-align: center !important; }