MCPcopy Index your code
hub / github.com/NativeScript/NativeScript / profileFunction

Function profileFunction

packages/core/profiling/index.ts:178–180  ·  view source on GitHub ↗
(fn: F, customName?: string)

Source from the content-addressed store, hash-verified

176}
177
178function profileFunction<F extends Function>(fn: F, customName?: string): F {
179 return profileFunctionFactory<F>(fn, customName || fn.name);
180}
181
182const profileMethodUnnamed = (target: Object, key: symbol | string, descriptor) => {
183 // save a reference to the original method this way we keep the values currently in the

Callers 1

profileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected