Comments (5)
loli_server.cpp里设置最大buffer是 327675
// set max send buffer
int sendbuff = 327675;
ecode = setsockopt(sock, SOL_SOCKET, SO_SNDBUF, &sendbuff, sizeof(sendbuff));
跟这个设置有关吗,调大点会不会不断开tcp
from loli_profiler.
loli_server.cpp里设置最大buffer是 327675
// set max send buffer
int sendbuff = 327675;
ecode = setsockopt(sock, SOL_SOCKET, SO_SNDBUF, &sendbuff, sizeof(sendbuff));跟这个设置有关吗,调大点会不会不断开tcp
不好意思刚休假回来
应该没关系,有可能是瞬时网络包量太大了,可以尝试设置strict mode设置一个采集阈值,比如128/256byte以上再采集
或者用attach模式
也可以看看adb logcat -s Loli 看看设备上的socket是不是创建失败了,是不是ecode=-1
确保你的app开了internet access权限哈(mainfest)
from loli_profiler.
恩,网络应该正常,因为断开连接的现象是连接成功并正常记录一段时间后才出现的。
我们换了一台配置较高的windows主机,这种现象出现的频率就有所降低。
好奇的问一下,为啥 “瞬时网络包量太大了” 会导致connect lost 呢?
from loli_profiler.
具体原因我也没深究过,这个内存profile数据量是比较大,可能和adb socket的实现有关
也有可能是loli的server或client端设计不够健壮导致的
嗯 数据量确实大,pc上会把socket数据缓存到磁盘,一会就上G了,可能对disk的速度有写要求
from loli_profiler.
感谢
from loli_profiler.
Related Issues (20)
- captured 0 records HOT 1
- loli_profile可以定位出unity3d c#内存泄露代码吗? HOT 4
- 这个框架应该是夸大了它的能力,实际来看只能分析android原生场景的native内存泄露,对于unity是分析不了的,unreal的情况也抓不到任何数据 HOT 1
- 一直提示Connection lost,无法抓取数据 HOT 2
- 那这么问吧,既然unity和unreal都能分析,这个框架ieg bg内有多少组是用的? HOT 3
- 内存统计中的 anonymous 是什么含义? HOT 1
- Connection lost ... HOT 1
- Captured 0 records.
- UE4.27通过MallocBinned2.cpp不能跟踪 HOT 3
- 一直卡在loading 状态 HOT 3
- unity 2019.4解析不出来 HOT 4
- Cached 0 records. HOT 3
- 支持命令行调用吗 HOT 2
- captured 0 records:Error dlopen,试了好多设备都是如此 HOT 4
- unity 2019 "-fno-omit-frame-pointer" 选项可以做到debug包才生效吗? HOT 2
- macos 编译错误 HOT 7
- 能否对MarkTime操作做一些优化 HOT 1
- 无法进行连接上设备Connection lost HOT 1
- 不能Launch只能Attach HOT 1
- 一直卡主注入so HOT 2
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 loli_profiler.