-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Only loading & refresh the right section (not whole page) when changing memory types - Change to use <chart> component for the memory allocation chart, so we can hover and see data tooltip - Updated chart titles, add chart axis titles to make its meaning more straightforward - updated graph-search tooltip and placeholder for clearer call to actions PiperOrigin-RevId: 567765930
- Loading branch information
1 parent
e3a1905
commit 5fbf6a1
Showing
7 changed files
with
109 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,3 +30,7 @@ | |
.control { | ||
padding: 20; | ||
} | ||
|
||
.heap-chart-header { | ||
margin: 20px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 6 additions & 5 deletions
11
frontend/app/components/memory_viewer/program_order_chart/program_order_chart.ng.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
<div [className]="heapSizes.length ? 'auto-height' : 'hidden-content'"> | ||
<div class="mat-headline">Working Space Size (MiB) vs Program Order (HLO Sequence) | ||
<span><a [href]="timelineUrl" [hidden]="!timelineUrl.length" target="_blank">timeline</a></span> | ||
<div class="chart-title-container"> | ||
<h2>Memory Allocation Size (MiB) vs Program Order (HLO Sequence)</h2> | ||
<div class="timeline-link"><a [href]="timelineUrl" [hidden]="!timelineUrl.length" target="_blank">timeline</a></div> | ||
</div> | ||
<div class="chart-container"> | ||
<div class="chart" #peakChart></div> | ||
<div class="chart" #chart></div> | ||
<div class="chart" #activeChart></div> | ||
<chart class="chart" #peakChart [chartType]="AREA_CHART" [dataInfo]="peakChartDataInfo"></chart> | ||
<chart class="chart" #activeChart [chartType]="AREA_CHART" [dataInfo]="activeChartDataInfo"></chart> | ||
<chart class="chart" #heapChart [chartType]="LINE_CHART" [dataInfo]="heapChartDataInfo"></chart> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 8 additions & 1 deletion
9
frontend/app/components/memory_viewer/program_order_chart/program_order_chart_module.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,14 @@ | ||
import {NgModule} from '@angular/core'; | ||
import {ChartModule} from 'org_xprof/frontend/app/components/chart/chart'; | ||
|
||
import {ProgramOrderChart} from './program_order_chart'; | ||
|
||
@NgModule({declarations: [ProgramOrderChart], exports: [ProgramOrderChart]}) | ||
@NgModule({ | ||
declarations: [ProgramOrderChart], | ||
imports: [ | ||
ChartModule, | ||
], | ||
exports: [ProgramOrderChart] | ||
}) | ||
export class ProgramOrderChartModule { | ||
} |