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 ¶
- Variables
- func GetNameOnPid(client *adb.Device, pid string) (string, error)
- func GetPidOnPackageName(client *adb.Device, appName string) (pid string, err error)
- func GetProcCpu(client *adb.Device, perfOptions entity.PerfOption, ...)
- func GetProcFPS(client *adb.Device, perfOptions entity.PerfOption, ...)
- func GetProcMem(client *adb.Device, perfOptions entity.PerfOption, ...)
- func GetProcThreads(client *adb.Device, perfOptions entity.PerfOption, ...)
- func GetSystemCPU(client *adb.Device, perfOptions entity.PerfOption, ...)
- func GetSystemMem(client *adb.Device, perfOptions entity.PerfOption, ...)
- func GetSystemNetwork(client *adb.Device, perfOptions entity.PerfOption, ...)
- func UpdatePIDAndPackageCurrentActivity(client *adb.Device, sign context.Context)
- type RenderTime
Constants ¶
This section is empty.
Variables ¶
var HZ = 100.0 //# ticks/second
var IntervalTime = 1.0 // # seconds
var IsForce = false
var PackageName = ""
var Pid = ""
Functions ¶
func GetNameOnPid ¶ added in v0.1.7
func GetPidOnPackageName ¶
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)