Package com.zego.zegoliveroom.callback
Interface IZegoRunLoopObserveCallback
-
public interface IZegoRunLoopObserveCallback
observe回调。Copyright © 2020 Zego. All rights reserved.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onRunLoopObserveCallback(long taskId, int type, int taskDispatchTime, int taskRunTime, int taskTotalTime)
sdk 主线程任务耗时回调
-
-
-
Method Detail
-
onRunLoopObserveCallback
void onRunLoopObserveCallback(long taskId, int type, int taskDispatchTime, int taskRunTime, int taskTotalTime)
sdk 主线程任务耗时回调- Parameters:
taskId
- sdk内部任务的taskIDtype
- 任务类型,参考ZegoTaskType
taskDispatchTime
- 任务调度消耗时间 单位mstaskRunTime
- 任务实际执行消耗时间 单位mstaskTotalTime
- 任务从投递到执行完毕时间 单位ms。外部重点关注此时间即可(taskTotalTime = taskDispatchTime + taskTotalTime) 一般情况只需关注此时间即可
-
-