Skip to content

Commit

Permalink
add a optional power metric section in overview page
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 561509583
  • Loading branch information
trisolaran authored and copybara-github committed Aug 31, 2023
1 parent 9258563 commit 52a2fa5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions frontend/app/common/interfaces/data_table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ declare interface GeneralAnalysisProperty {
device_compute_32bit_percent?: string;
remark_color?: string;
remark_text?: string;
power_metrics?: string;
}
/* tslint:enable */

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const GENERIC_SUMMARY_INFO = [
styleUrls: ['./performance_summary.scss']
})
export class PerformanceSummary implements OnChanges {
/** The general anaysis data. */
/** The general analysis data. */
@Input() generalAnalysis?: GeneralAnalysis;

/** The input pipeline analyis data. */
Expand Down Expand Up @@ -222,6 +222,16 @@ export class PerformanceSummary implements OnChanges {
`Device: ${generalProps.device_op_time_eager_percent || ''}`,
],
});

if (generalProps.power_metrics) {
const components = generalProps.power_metrics.split('##');
this.summaryInfoAfter.push({
title: 'Power Metrics',
descriptions: ['Power consumption of different compoenents'],
tooltip: this.opTimeInEagerModeTooltipMessage,
propertyValues: components,
});
}
}

parseGenericData() {
Expand Down

0 comments on commit 52a2fa5

Please sign in to comment.