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

Function enable

packages/core/profiling/index.ts:147–160  ·  view source on GitHub ↗
(mode: InstrumentationMode = 'counters')

Source from the content-addressed store, hash-verified

145
146let profileFunctionFactory: <F extends Function>(fn: F, name: string, type?: MemberType) => F;
147export function enable(mode: InstrumentationMode = 'counters') {
148 profileFunctionFactory =
149 mode &&
150 {
151 counters: countersProfileFunctionFactory,
152 timeline: timelineProfileFunctionFactory,
153 }[mode];
154
155 tracingLevel =
156 {
157 lifecycle: Level.lifecycle,
158 timeline: Level.timeline,
159 }[mode] || Level.none;
160}
161
162try {
163 if (appConfig && appConfig.profiling) {

Callers 2

profiling-tests.tsFile · 0.90
index.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected