feat: integrage ios performance monitor

This commit is contained in:
debugtalk
2022-10-10 14:06:31 +08:00
parent bfe4030431
commit cd33f01840
14 changed files with 150 additions and 19 deletions

View File

@@ -1,6 +1,10 @@
package hrp
import "github.com/httprunner/httprunner/v4/hrp/internal/uixt"
import (
giDevice "github.com/electricbubble/gidevice"
"github.com/httprunner/httprunner/v4/hrp/internal/uixt"
)
type StepType string
@@ -24,6 +28,21 @@ var (
WithIgnoreNotFoundError = uixt.WithIgnoreNotFoundError
)
var (
WithPerfSystemCPU = giDevice.WithPerfSystemCPU
WithPerfSystemMem = giDevice.WithPerfSystemMem
WithPerfSystemDisk = giDevice.WithPerfSystemDisk
WithPerfSystemNetwork = giDevice.WithPerfSystemNetwork
WithPerfGPU = giDevice.WithPerfGPU
WithPerfFPS = giDevice.WithPerfFPS
WithPerfNetwork = giDevice.WithPerfNetwork
WithPerfBundleID = giDevice.WithPerfBundleID
WithPerfPID = giDevice.WithPerfPID
WithPerfOutputInterval = giDevice.WithPerfOutputInterval
WithPerfProcessAttributes = giDevice.WithPerfProcessAttributes
WithPerfSystemAttributes = giDevice.WithPerfSystemAttributes
)
type StepResult struct {
Name string `json:"name" yaml:"name"` // step name
StepType StepType `json:"step_type" yaml:"step_type"` // step type, testcase/request/transaction/rendezvous