MCPcopy Create free account
hub / github.com/tensorflow/tfjs / time

Method time

tfjs-core/src/profiler_test.ts:36–42  ·  view source on GitHub ↗
(query: () => void)

Source from the content-addressed store, hash-verified

34 }
35
36 async time(query: () => void): Promise<BackendTimingInfo> {
37 query();
38 const kernelMs = await new Promise<number>(
39 resolve => setTimeout(
40 () => resolve(this.queryTimeMs * this.counter++), this.delayMs));
41 return {kernelMs, getExtraProfileInfo: () => this.extraInfo};
42 }
43}
44
45class TestLogger extends Logger {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected