Skip to content

Commit

Permalink
Show BenchmarkRunModeEnum in the history screen
Browse files Browse the repository at this point in the history
  • Loading branch information
anhappdev committed Jan 14, 2025
1 parent a11e145 commit a99e40b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions flutter/lib/ui/history/extended_result_screen.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import 'package:flutter/material.dart';
import 'package:mlperfbench/benchmark/run_mode.dart';

import 'package:provider/provider.dart';

Expand Down Expand Up @@ -195,6 +196,7 @@ class _ExtendedResultViewState extends State<ExtendedResultView> {
final utils = HistoryHelperUtils(l10n);
final modelDescription = res.environmentInfo.modelDescription;
final socDescription = utils.makeSocName(state, res.environmentInfo);
final runMode = res.meta.runMode?.localizedName(l10n) ?? l10n.unknown;

return [
helper.makeInfo(l10n.historyDetailsDate, date),
Expand All @@ -204,6 +206,7 @@ class _ExtendedResultViewState extends State<ExtendedResultView> {
helper.makeInfo(l10n.historyDetailsBackendName, backendName),
helper.makeInfo(l10n.historyDetailsModelName, modelDescription),
helper.makeInfo(l10n.historyDetailsSocName, socDescription),
helper.makeInfo(l10n.settingsRunMode, runMode),
const Divider(),
helper.makeHeader(l10n.historyDetailsTableTitle),
makeBenchmarkTable(context, res.results),
Expand Down

0 comments on commit a99e40b

Please sign in to comment.