Comments (5)
搜索实践一下fork的用法。不太准确的描述,你可以认为fork会返回2次,一次在主进程一次在子进程,等于0时代表当前在子进程。
from koom.
多加了一条日志把 Pid 打印出来,只有 Pid = 11615,没有 Pid = 0。是不是要特殊场景才会触发?
from koom.
不需要特殊场景。有两点确认下:
1.fork进程是单线程的,子进程只有当前线程一个线程存活,logcat应该会失效、logcat日志是无法在控制台显示的
2.fork返回的两次会在两个不同的进程,所以即使能够查看logcat日志,也需要展示所有进程的日志
from koom.
是的,确实是 🤦♂️ 我在 Logcat 里面被过滤掉了
from koom.
是我对 fork 这一块的理解还不够,3Q
from koom.
Related Issues (20)
- 群已满人,可以发个新群的邀请码吗
- dump经常失败,报错 HOT 1
- native 内存检测LeakMonitor 工具,demo app,自身有内存泄露的问题
- 问下libhwui_hack.so 这个so会对 系统libhwui.so进行Hook
- 请问Fast dump可以适配android U吗?当前U上dump hprof全为0KB HOT 11
- App进程maps所有者和所属组被修改为root HOT 5
- 线程泄漏检测疑似存在误报的情况?
- 请问Fast dump在Android 12上 也出现了dump hprof为0KB情况,是12没有全部兼容吗 HOT 8
- 实测相对低端的机器上,Koom report 几乎不会回调 HOT 1
- HeapAnalysisService 启动之后就没有回调,仿照 HeapAnalysisService 使用 shark 很快就分析出了结果,相关执行线程可能存在问题 HOT 1
- MIUI OOMEventManagerFK Failed to mkdir /data/miuilog/stability/memleak/heapdump/ HOT 3
- NativeLeak 泄漏 怎么看啊?
- native monitor leak list is null HOT 1
- R8混淆,补到文档里吧
- [koom-native] 兼容 MTE
- [koom-native] 兼容 MTE HOT 1
- ThreadLeak native 崩溃 HOT 1
- 可以检测malloc内存泄漏,检测不到new内存泄漏?
- heap_analysis进程 OOM HOT 1
- hprof文件剪裁问题
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from koom.