MCPcopy Create free account
hub / github.com/krasimir/react-in-patterns / endMark

Function endMark

code/dependency-injection-module-system/public/app.js:7548–7561  ·  view source on GitHub ↗
(label, markName, warning$$1)

Source from the content-addressed store, hash-verified

7546};
7547
7548var endMark = function (label, markName, warning$$1) {
7549 var formattedMarkName = formatMarkName(markName);
7550 var formattedLabel = formatLabel(label, warning$$1);
7551 try {
7552 performance.measure(formattedLabel, formattedMarkName);
7553 } catch (err) {}
7554 // If previous mark was missing for some reason, this will throw.
7555 // This could only happen if React crashed in an unexpected place earlier.
7556 // Don't pile on with more errors.
7557
7558 // Clear marks immediately to avoid growing buffer.
7559 performance.clearMarks(formattedMarkName);
7560 performance.clearMeasures(formattedLabel);
7561};
7562
7563var getFiberMarkName = function (label, debugID) {
7564 return label + ' (#' + debugID + ')';

Callers 6

endFiberMarkFunction · 0.70
stopRequestCallbackTimerFunction · 0.70
stopWorkLoopTimerFunction · 0.70
stopCommitTimerFunction · 0.70

Calls 2

formatMarkNameFunction · 0.70
formatLabelFunction · 0.70

Tested by

no test coverage detected