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

Function endMark

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

Source from the content-addressed store, hash-verified

7588};
7589
7590var endMark = function (label, markName, warning$$1) {
7591 var formattedMarkName = formatMarkName(markName);
7592 var formattedLabel = formatLabel(label, warning$$1);
7593 try {
7594 performance.measure(formattedLabel, formattedMarkName);
7595 } catch (err) {}
7596 // If previous mark was missing for some reason, this will throw.
7597 // This could only happen if React crashed in an unexpected place earlier.
7598 // Don't pile on with more errors.
7599
7600 // Clear marks immediately to avoid growing buffer.
7601 performance.clearMarks(formattedMarkName);
7602 performance.clearMeasures(formattedLabel);
7603};
7604
7605var getFiberMarkName = function (label, debugID) {
7606 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