* 测量异步函数执行时间
(
name: string,
fn: () => Promise<T>,
category: ProfileCategory = ProfileCategory.Custom
)
| 103 | * 测量异步函数执行时间 |
| 104 | */ |
| 105 | public static async measureAsync<T>( |
| 106 | name: string, |
| 107 | fn: () => Promise<T>, |
| 108 | category: ProfileCategory = ProfileCategory.Custom |
| 109 | ): Promise<T> { |
| 110 | return ProfilerSDK.getInstance().measureAsync(name, fn, category); |
| 111 | } |
| 112 | |
| 113 | /** |
| 114 | * 开始帧 |
no test coverage detected