xcode UIWorkIntervalTiming workIntervalStart
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/55371666/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
UIWorkIntervalTiming workIntervalStart
提问by SPatel
Getting console log while scrolling ScrollView
.
Is there way to remove this?
滚动时获取控制台日志ScrollView
。有没有办法去除这个?
2019-03-27 12:33:34.109573+0530 MyApp[10465:46241] [UIWorkIntervalTiming] workIntervalStart: startTimestamp > targetTimestamp; rolling forward by 1.116667
2019-03-27 12:33:34.109573+0530 MyApp[10465:46241] [UIWorkIntervalTiming] workIntervalStart: startTimestamp > targetTimestamp; 向前滚动 1.116667
回答by Nazmul Hasan
I can observe the same issue with a UICollectionView
and UITableView
. I suspect it is a diagnostic output used to analyse the scrolling performance.
我可以用 aUICollectionView
和观察到同样的问题UITableView
。我怀疑它是用于分析滚动性能的诊断输出。
Note: I notice this issue from Xcode 10.2
注意:我从 Xcode 10.2 注意到这个问题
in UICollectionView
if you swapping too much faster than collection getting Freezefor few moment on Simulatorbut Real Deviceworking fine.
在UICollectionView
如果你换太多快于收集越来越冻结对一些时刻模拟器,但实际的设备工作正常。
Earlier Xcode version this features is UIWorkIntervalTiming had its logging privileges revoked
较早的 Xcode 版本此功能是 UIWorkIntervalTiming 已撤销其日志记录权限
回答by Rajeev Udayan
Check any third party UI/animation related library used with in scroll view/table view cell.Issue might be with those libraries.
检查滚动视图/表格视图单元格中使用的任何第三方 UI/动画相关库。问题可能与这些库有关。
回答by Alex Bes
You can simply silence the noise from the simulator:
您可以简单地消除模拟器中的噪音:
- Xcode Menu: Product-> Scheme-> Edit Scheme
- Select the Run(Debug)
On Environment Variables section set OS_ACTIVITY_MODE= disable
- Image
- Xcode 菜单:产品->方案->编辑方案
- 选择运行(调试)
在环境变量部分设置OS_ACTIVITY_MODE= disable
- 图片
Unfortunately, I can't find any information relating to this issue in Apple documentation, but I believe that it is some diagnostic output which is used to analyze the scrolling performance.
不幸的是,我在 Apple 文档中找不到与此问题相关的任何信息,但我相信这是一些用于分析滚动性能的诊断输出。