// Copyright (c) 2016 The Chromium Authors. All rights reserved.// Use of this source code is governed by a BSD-style license that can be// found in the LICENSE file.import'dart:io';import'package:path/path.dart'aspath;import'package:flutter_devicelab/framework/adb.dart';import'package:flutter_devicelab/framework/framework.dart';import'package:flutter_devicelab/framework/utils.dart';voidmain(){task(()async{Adbdevice=awaitadb();awaitdevice.unlock();DirectoryappDir=dir(path.join(flutterDirectory.path,'examples/flutter_gallery'));FilebenchmarkFile=file(path.join(appDir.path,'hot_benchmark.json'));rm(benchmarkFile);awaitinDirectory(appDir,()async{returnawaitflutter('run',options:<String>['--hot','-d',device.deviceId,'--benchmark'],canFail:false);});returnnewTaskResult.successFromFile(benchmarkFile,benchmarkScoreKeys:<String>['hotReloadMillisecondsToFrame','hotRestartMillisecondsToFrame']);});}