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

Function endMark

code/third-party/public/app.js:6730–6743  ·  view source on GitHub ↗
(label, markName, warning$$1)

Source from the content-addressed store, hash-verified

6728};
6729
6730var endMark = function (label, markName, warning$$1) {
6731 var formattedMarkName = formatMarkName(markName);
6732 var formattedLabel = formatLabel(label, warning$$1);
6733 try {
6734 performance.measure(formattedLabel, formattedMarkName);
6735 } catch (err) {}
6736 // If previous mark was missing for some reason, this will throw.
6737 // This could only happen if React crashed in an unexpected place earlier.
6738 // Don't pile on with more errors.
6739
6740 // Clear marks immediately to avoid growing buffer.
6741 performance.clearMarks(formattedMarkName);
6742 performance.clearMeasures(formattedLabel);
6743};
6744
6745var getFiberMarkName = function (label, debugID) {
6746 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