MCPcopy Create free account
hub / github.com/esengine/esengine / beginSample

Method beginSample

packages/core/src/Utils/Profiler/ProfilerSDK.ts:82–84  ·  view source on GitHub ↗

* 开始采样

(name: string, category: ProfileCategory = ProfileCategory.Custom)

Source from the content-addressed store, hash-verified

80 * 开始采样
81 */
82 public static beginSample(name: string, category: ProfileCategory = ProfileCategory.Custom): SampleHandle | null {
83 return ProfilerSDK.getInstance().beginSample(name, category);
84 }
85
86 /**
87 * 结束采样

Callers 10

measureMethod · 0.95
measureAsyncMethod · 0.95
wrapFunctionMethod · 0.80
_createWrappedMethodMethod · 0.80
ProfileFunction · 0.80
updateMethod · 0.80
_runSystemPhaseMethod · 0.80
flushCommandBuffersMethod · 0.80

Calls 6

nowMethod · 0.80
generateIdFunction · 0.70
hasMethod · 0.65
setMethod · 0.65
pushMethod · 0.65
getInstanceMethod · 0.45

Tested by

no test coverage detected