mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-08 09:19:41 +08:00
feat: integrage ios performance monitor
This commit is contained in:
21
hrp/step.go
21
hrp/step.go
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user