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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 10:55:27  来源:igfitidea点击:

UIWorkIntervalTiming workIntervalStart

iosxcodeuiscrollviewxcode10.2

提问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 UICollectionViewand 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 UICollectionViewif 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:

您可以简单地消除模拟器中的噪音:

  1. Xcode Menu: Product-> Scheme-> Edit Scheme
  2. Select the Run(Debug)
  3. On Environment Variables section set OS_ACTIVITY_MODE= disable

    • Image
  1. Xcode 菜单:产品->方案->编辑方案
  2. 选择运行(调试)
  3. 在环境变量部分设置OS_ACTIVITY_MODE= disable

    • 图片

Here is an image

这是一张图片

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 文档中找不到与此问题相关的任何信息,但我相信这是一些用于分析滚动性能的诊断输出。