MCPcopy Index your code
hub / github.com/facebook/react / markAndClear

Function markAndClear

packages/react-devtools-shared/src/backend/profilingHooks.js:214–218  ·  view source on GitHub ↗
(markName: string)

Source from the content-addressed store, hash-verified

212 }
213
214 function markAndClear(markName: string) {
215 // This method won't be called unless these functions are defined, so we can skip the extra typeof check.
216 ((performanceTarget: any): Performance).mark(markName);
217 ((performanceTarget: any): Performance).clearMarks(markName);
218 }
219
220 function recordReactMeasureStarted(
221 type: ReactMeasureType,

Calls

no outgoing calls

Tested by

no test coverage detected