TraceUtility icon indicating copy to clipboard operation
TraceUtility copied to clipboard

如何处理[context display]时可能出现Loading进度条的情况?

Open SamDivine opened this issue 5 years ago • 2 comments

(感觉和 #34 碰见的情况挺像的) 我想获得 Time Profiler 模板中 Samples 那一个 context 中的数据,这一个 context 的数据获取方式理论上和 FPS 的获取方式是一样的,但是通常情况下数据点远多于 FPS,在 Instruments 中直接切换会出现一个 Loading 进度条然后才会载入完数据。

通过调试发现,这种情况下 [context display] 之后 context.container 中实际接管流程的是 XRModalViewController *_modalController 而不是 XRAnalysisCoreTableViewController *_tabularViewController,因此没法直接使用 _tabularViewController 直接获取数据。

不知在这种情况下应当用什么方法来正确地让 _tabularViewController 接管流程并获取数据呢?

SamDivine avatar Dec 16 '18 10:12 SamDivine

我猜应该不行,是_modalController的话那就试试从_modalController里拿数据吧

Qusic avatar Dec 20 '18 06:12 Qusic

从class-dump出来的东西来看,XRModalViewController里面没看出来啥能直接获取数据的方法,这个controller应该只是作为loading界面过渡的,毕竟是个modal…… 感觉上是 [context display] 过程中的某个地方根据数据量作了区分来决定是否需要这个 modal 来过渡,也许得从其他地方想想办法

SamDivine avatar Dec 24 '18 01:12 SamDivine