博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
查看android app 线程信息的命令
阅读量:5946 次
发布时间:2019-06-19

本文共 3521 字,大约阅读时间需要 11 分钟。

参考:https://my.oschina.net/zhiweiofli/blog/138454

ps | grep 'joyodream'  找到 app 的pid; joyodream为包名的一部分 ps -t pid 查找指定pid的线程信息 例如:  ps -t 14500 360 手机

USER PID PPID VSIZE RSS WCHAN PC NAME

u0_a118 14500 375 2521896 137196 SyS_epoll_ 0000000000 S com.joyodream.bindtest
u0_a118 14506 14500 2521896 137196 do_sigtime 0000000000 S Signal Catcher
u0_a118 14507 14500 2521896 137196 poll_sched 0000000000 S JDWP
u0_a118 14508 14500 2521896 137196 futex_wait 0000000000 S ReferenceQueueD
u0_a118 14509 14500 2521896 137196 futex_wait 0000000000 S FinalizerDaemon
u0_a118 14510 14500 2521896 137196 futex_wait 0000000000 S FinalizerWatchd
u0_a118 14511 14500 2521896 137196 futex_wait 0000000000 S HeapTaskDaemon
u0_a118 14512 14500 2521896 137196 binder_thr 0000000000 S Binder_1
u0_a118 14513 14500 2521896 137196 binder_thr 0000000000 S Binder_2
u0_a118 14515 14500 2521896 137196 SyS_epoll_ 0000000000 S RenderThread
u0_a118 14517 14500 2521896 137196 futex_wait 0000000000 S mali-mem-purge
u0_a118 14518 14500 2521896 137196 kbase_read 0000000000 S mali-event-hnd
u0_a118 14519 14500 2521896 137196 futex_wait 0000000000 S mali-utility-wo
u0_a118 14520 14500 2521896 137196 futex_wait 0000000000 S mali-utility-wo
u0_a118 14521 14500 2521896 137196 futex_wait 0000000000 S mali-utility-wo
u0_a118 14522 14500 2521896 137196 futex_wait 0000000000 S mali-utility-wo
u0_a118 14523 14500 2521896 137196 futex_wait 0000000000 S mali-utility-wo
u0_a118 14524 14500 2521896 137196 futex_wait 0000000000 S mali-utility-wo
u0_a118 14525 14500 2521896 137196 futex_wait 0000000000 S mali-utility-wo
u0_a118 14526 14500 2521896 137196 futex_wait 0000000000 S mali-utility-wo
u0_a118 14527 14500 2521896 137196 futex_wait 0000000000 S mali-utility-wo
u0_a118 14528 14500 2521896 137196 futex_wait 0000000000 S mali-utility-wo
u0_a118 14529 14500 2521896 137196 futex_wait 0000000000 S mali-renderer
u0_a118 14530 14500 2521896 137196 futex_wait 0000000000 S mali-hist-dump
u0_a118 14531 14500 2521896 137196 futex_wait 0000000000 S ged-swd
u0_a118 14533 14500 2521896 137196 futex_wait 0000000000 S hwuiTask1

 

1+ 手机

u0_a100 19418 284 1609932 43208 ffffffff 00000000 S com.joyodream.bindtest

u0_a100 19424 19418 1609932 43208 ffffffff 00000000 S Heap thread poo
u0_a100 19425 19418 1609932 43208 ffffffff 00000000 S Heap thread poo
u0_a100 19426 19418 1609932 43208 ffffffff 00000000 S Heap thread poo
u0_a100 19427 19418 1609932 43208 ffffffff 00000000 S Signal Catcher
u0_a100 19428 19418 1609932 43208 ffffffff 00000000 S JDWP
u0_a100 19429 19418 1609932 43208 ffffffff 00000000 S ReferenceQueueD
u0_a100 19430 19418 1609932 43208 ffffffff 00000000 S FinalizerDaemon
u0_a100 19431 19418 1609932 43208 ffffffff 00000000 S FinalizerWatchd
u0_a100 19432 19418 1609932 43208 ffffffff 00000000 S HeapTrimmerDaem
u0_a100 19433 19418 1609932 43208 ffffffff 00000000 S GCDaemon
u0_a100 19434 19418 1609932 43208 ffffffff 00000000 S Binder_1
u0_a100 19435 19418 1609932 43208 ffffffff 00000000 S Binder_2
u0_a100 19438 19418 1609932 43208 ffffffff 00000000 S android.bg
u0_a100 19464 19418 1609932 43208 ffffffff 00000000 S RenderThread
u0_a100 19465 19418 1609932 43208 ffffffff 00000000 S AsyncQueryWorke
u0_a100 19470 19418 1609932 43208 ffffffff 00000000 S GL updater
u0_a100 19474 19418 1609932 43208 ffffffff 00000000 S hwuiTask1

一个Hellow world App,包含至少2个Binder线程(偶尔出现3个),FinalizerDaemon线程、FinalizerWatchd线程、RenderThread、主线程、ReferenceQueued、HeapTaskDaemon、SignalCatcher、GCDaemon、hwuiTask

 

 

 

 

转载于:https://www.cnblogs.com/lipeil/p/6015542.html

你可能感兴趣的文章
校验表单如何摆脱 if else ?
查看>>
JS敏感信息泄露:不容忽视的WEB漏洞
查看>>
分布式memcached服务器代理magent安装配置(CentOS6.6)
查看>>
Create Volume 操作(Part III) - 每天5分钟玩转 OpenStack(52)
查看>>
tomcat 8.0虚拟机配置文档
查看>>
pxc群集搭建
查看>>
JS中加载cssText延时
查看>>
常用的脚本编程知识点
查看>>
计算机网络术语总结4
查看>>
新手小白 python之路 Day3 (string 常用方法)
查看>>
soapUI的简单使用(webservice接口功能测试)
查看>>
框架 Hibernate
查看>>
python-while循环
查看>>
手机端上传图片及java后台接收和ajaxForm提交
查看>>
【MSDN 目录】C#编程指南、C#教程、ASP.NET参考、ASP.NET 4、.NET Framework类库
查看>>
jquery 怎么触发select的change事件
查看>>
angularjs指令(二)
查看>>
<气场>读书笔记
查看>>
领域驱动设计,构建简单的新闻系统,20分钟够吗?
查看>>
web安全问题分析与防御总结
查看>>