备份

发布于 2024-06-01 21:58:55 阅读 394
AP_POWER_MODE_REQUEST

12-19 09:42:01.442 I/VehicleHAL.AutolinkVehicleHal(  419): onPropertyValue AP_POWER_MODE_REQUEST(557969412) : 13

12-19 09:42:09.107 I/VehicleHAL.AutolinkVehicleHal(  419): onPropertyValue AP_POWER_MODE_REQUEST(557969412) : 11
12-19 09:42:09.107 I/VehicleHAL.AutolinkVehicleHal(  419): onPropertyValue AP_POWER_MODE_REQUEST(557969412) : 10

onPowerChanged

12-19 09:42:01.482 E/PowerManager( 1555): onPowerChanged: 13
12-19 09:42:09.115 E/PowerManager( 1555): onPowerChanged: 11
12-19 09:42:09.115 E/PowerManager( 1555): onPowerChanged: 10


p
12-19 09:56:00.094 I/VehicleHAL.AutolinkVehicleHal(  419): onPropertyValue ExtrLtgStsStopLi(557873488) : 1
12-19 09:56:09.682 I/VehicleHAL.AutolinkVehicleHal(  419): onPropertyValue ExtrLtgStsStopLi(557873488) : 0


12-19 09:56:05.898 I/VehicleHAL.AutolinkVehicleHal(  419): onPropertyValue DrvrDesDirDrvrDesDir(557874386) : 1
12-19 09:56:03.613 I/VehicleHAL.AutolinkVehicleHal(  419): onPropertyValue DrvrDesDirDrvrDesDir(557874386) : 2
12-19 09:56:05.898 I/VehicleHAL.AutolinkVehicleHal(  419): onPropertyValue DrvrDesDirDrvrDesDir(557874386) : 3

https://static.zmis.me/software/app-debug.apk

adb shell dumpsys activity activities


* Hist #1: ActivityRecord {76f895b u0 com.hardwaremanager/.activity.SystemInfoActivity t39}
# 查看当前设备上可用的显示屏
adb shell wm displays 

# 或者使用
adb shell dumpsys display
adb shell dumpsys display

adb shell pm list packages 展示应用列表

adb shell pm list packages | grep auto

adb shell am start --display <displayId> -n <packageName>/<activityName>

adb shell am start --display 1 -n com.example.app/.MainActivity

ffmpeg -i xxx -b:a 音频 -r fps -b:v 码

carlink

adb shell pm grant net.dinglisch.android.taskerm android.permission.SET_VOLUME_KEY_LONG_PRESS_LISTENER

cmd

连接车机命令:

198.18.34.15:5555

车机开启ADB命令:

setprop persist.sys.usb.adb on

Tasker权限命令

adb shell pm grant net.dinglisch.android.taskerm android.permission.READ_LOGS 

adb shell am force-stop net.dinglisch.android.taskerm

ori.xml

task.xml

task.apk

tasker-0323.xml

  1. Goroutine 问题 可以通过访问

    http://localhost:6060/debug/pprof/goroutine 

    查看当前的 goroutine 堆栈信息。如果有太多的 goroutine,可能是程序中存在 goroutine 泄漏,需要分析 goroutine 的创建和调用栈。

  2. CPU 使用 要进行 CPU 性能分析,可以使用:

    go tool pprof http://localhost:6060/debug/pprof/profile?seconds=30

    这会生成一个 CPU 性能剖面数据,持续 30 秒。进入 pprof 交互模式后,你可以使用命令,例如 top 查看 CPU 使用情况,web 可生成图像查看调用关系。

  3. Heap 使用 要查看内存分配情况,可以使用:

    go tool pprof http://localhost:6060/debug/pprof/heap

    这将显示堆内存的使用情况和分配情况。你可以在 pprof 中通过 top、web 等命令分析内存分配的热点。

  4. Mutex 使用 若程序中存在锁争用,可以使用:

    go tool pprof http://localhost:6060/debug/pprof/mutex

    此命令帮助你找出造成锁争用的热点代码。通过 top 和 web 等命令,可以看到哪个 goroutine 造成了最大的锁等待时间。

  5. Go 跟踪 通过 Go 的追踪功能查看程序的执行过程,可以进行如下操作:

    go tool trace http://localhost:6060/debug/pproftrace

    这将生成一个详细的跟踪报告,你可以通过浏览器查看,分析函数调用的时间消耗等信息。

  6. Go 垃圾回收 要查看垃圾回收的情况,可以使用:

    go tool pprof http://localhost:6060/debug/pprof/goroutine?debug=1