随笔分类 -  tmp

摘要:改code方式修改logcat buffer size 比如加在device下的device.mk里: PRODUCT_PROPERTY_OVERRIDES += \ ro.logd.size=5M 设置各种buffer size(main/system/crash) system/core/log 阅读全文
posted @ 2023-02-11 22:14 aspirs 阅读(108) 评论(0) 推荐(0) 编辑
摘要:Max Enhanced Area Max Enhanced Area = MAX_ENH_SIZE_MULT x HC_WP_GRP_SIZE x HC_ERASE_GRP_SIZE x 512kBytes Erase Unit Size = 512Kbyte × HC_ERASE_GRP_SIZ 阅读全文
posted @ 2023-01-06 14:58 aspirs 阅读(144) 评论(0) 推荐(0) 编辑
摘要:event.log中搜索关键字am_pss也可以看到某个Process当前使用memory的情况: //am_pss (Pid|1|5),(UID|1|5),(Process Name|3),(Pss|2|2),(Uss|2|2),(SwapPss|2|2),(Rss|2|2),(StatType| 阅读全文
posted @ 2022-12-12 13:54 aspirs 阅读(299) 评论(0) 推荐(0) 编辑
摘要:Num: Value Size Type Bind Vis Ndx Name 310: a0008120 0 NOTYPE GLOBAL DEFAULT ABS _gp 734: a0000010 32 OBJECT GLOBAL DEFAULT 77 v 818: 9d000018 496 FUN 阅读全文
posted @ 2022-12-04 16:35 aspirs 阅读(23) 评论(0) 推荐(0) 编辑
摘要:vm_area_struct是slab内存 vm_area_struct是slab内存,在/proc/slabinfo里的名字是vm_area_struct 添加kernel config并设定默认值 在Kconfig里添加一个config并设定默认值,其它地方不需要再改,即可使用此config: 阅读全文
posted @ 2022-11-23 14:47 aspirs 阅读(113) 评论(0) 推荐(0) 编辑
摘要:gdb usage attach process gdb attach $pid 查看进程内的所有线程 info thread 切换跟踪线程 thread $thread_id #此thread_id为info thread结果行首的thread id 查看变量值 先bt查看backtrace,再f 阅读全文
posted @ 2022-10-26 21:29 aspirs 阅读(20) 评论(0) 推荐(0) 编辑
摘要:sed -n '1,3p' file表示 取文件 第一行到 第3行的内容; 在匹配行前一行、后一行添加新行 前一行: sed -i '/target string/istring line want to add' $input_file #target string不需要是目标行完整字串,取其一部 阅读全文
posted @ 2022-09-24 11:40 aspirs 阅读(296) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示