perfmonUtil

package
v0.1.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 22, 2023 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Overview

* sonic-android-supply Supply of ADB. * Copyright (C) 2022 SonicCloudOrg * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published * by the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see <https://www.gnu.org/licenses/>.

* sonic-android-supply Supply of ADB. * Copyright (C) 2022 SonicCloudOrg * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published * by the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see <https://www.gnu.org/licenses/>.

Index

Constants

This section is empty.

Variables

View Source
var HZ = 100.0 //# ticks/second
View Source
var IntervalTime = 1.0 // # seconds
View Source
var IsForce = false
View Source
var PackageName = ""
View Source
var Pid = ""

Functions

func GetNameOnPid added in v0.1.7

func GetNameOnPid(client *adb.Device, pid string) (string, error)

func GetPidOnPackageName

func GetPidOnPackageName(client *adb.Device, appName string) (pid string, err error)

func GetProcCpu added in v0.1.5

func GetProcCpu(client *adb.Device, perfOptions entity.PerfOption, perfmonDataChan chan *entity.PerfmonData, sign context.Context)

func GetProcFPS added in v0.1.5

func GetProcFPS(client *adb.Device, perfOptions entity.PerfOption, perfmonDataChan chan *entity.PerfmonData, sign context.Context)

func GetProcMem added in v0.1.5

func GetProcMem(client *adb.Device, perfOptions entity.PerfOption, perfmonDataChan chan *entity.PerfmonData, sign context.Context)

func GetProcThreads added in v0.1.5

func GetProcThreads(client *adb.Device, perfOptions entity.PerfOption, perfmonDataChan chan *entity.PerfmonData, sign context.Context)

func GetSystemCPU added in v0.1.5

func GetSystemCPU(client *adb.Device, perfOptions entity.PerfOption, perfmonDataChan chan *entity.PerfmonData, sign context.Context)

func GetSystemMem added in v0.1.5

func GetSystemMem(client *adb.Device, perfOptions entity.PerfOption, perfmonDataChan chan *entity.PerfmonData, sign context.Context)

func GetSystemNetwork added in v0.1.5

func GetSystemNetwork(client *adb.Device, perfOptions entity.PerfOption, perfmonDataChan chan *entity.PerfmonData, sign context.Context)

func UpdatePIDAndPackageCurrentActivity added in v0.1.9

func UpdatePIDAndPackageCurrentActivity(client *adb.Device, sign context.Context)

Types

type RenderTime

type RenderTime struct {
	Draw    float64
	Prepare float64
	Process float64
	Execute float64
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL