MCPcopy Create free account
hub / github.com/microsoft/SandDance / endMark

Function endMark

docs/external/js/react-dom.development.js:10368–10382  ·  view source on GitHub ↗
(label, markName, warning)

Source from the content-addressed store, hash-verified

10366 };
10367
10368 var endMark = function (label, markName, warning) {
10369 var formattedMarkName = formatMarkName(markName);
10370 var formattedLabel = formatLabel(label, warning);
10371
10372 try {
10373 performance.measure(formattedLabel, formattedMarkName);
10374 } catch (err) {} // If previous mark was missing for some reason, this will throw.
10375 // This could only happen if React crashed in an unexpected place earlier.
10376 // Don't pile on with more errors.
10377 // Clear marks immediately to avoid growing buffer.
10378
10379
10380 performance.clearMarks(formattedMarkName);
10381 performance.clearMeasures(formattedLabel);
10382 };
10383
10384 var getFiberMarkName = function (label, debugID) {
10385 return label + " (#" + debugID + ")";

Callers 6

endFiberMarkFunction · 0.85
stopWorkLoopTimerFunction · 0.85
stopCommitTimerFunction · 0.85

Calls 2

formatMarkNameFunction · 0.85
formatLabelFunction · 0.85

Tested by

no test coverage detected