feat: 新增上报duration

This commit is contained in:
余泓铮
2024-06-20 12:04:20 +08:00
parent 55bdfc49be
commit cc53411ba0
8 changed files with 52 additions and 14 deletions
+7
View File
@@ -877,6 +877,13 @@ func (wd *wdaDriver) StopCaptureLog() (result interface{}, err error) {
return reply.Value, nil
}
func (wd *wdaDriver) GetDriverResults() []*DriverResult {
defer func() {
wd.Driver.driverResults = nil
}()
return wd.Driver.driverResults
}
type rawResponse []byte
func (r rawResponse) checkErr() (err error) {