MCPcopy Index your code
hub / github.com/TypeScriptToLua/TypeScriptToLua / mark

Function mark

src/measure-performance.ts:16–21  ·  view source on GitHub ↗

* Marks a performance event, with the given markName.

(markName: string)

Source from the content-addressed store, hash-verified

14 * Marks a performance event, with the given markName.
15 */
16function mark(markName: string) {
17 if (enabled) {
18 marks.set(markName, timestamp());
19 performance.mark(markName);
20 }
21}
22
23/**
24 * Adds a performance measurement with the specified name.

Callers 2

startSectionFunction · 0.85
endSectionFunction · 0.85

Calls 2

timestampFunction · 0.85
setMethod · 0.45

Tested by

no test coverage detected