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

Function endMark

code/new-context-api/public/app.js:6858–6871  ·  view source on GitHub ↗
(label, markName, warning$$1)

Source from the content-addressed store, hash-verified

6856};
6857
6858var endMark = function (label, markName, warning$$1) {
6859 var formattedMarkName = formatMarkName(markName);
6860 var formattedLabel = formatLabel(label, warning$$1);
6861 try {
6862 performance.measure(formattedLabel, formattedMarkName);
6863 } catch (err) {}
6864 // If previous mark was missing for some reason, this will throw.
6865 // This could only happen if React crashed in an unexpected place earlier.
6866 // Don't pile on with more errors.
6867
6868 // Clear marks immediately to avoid growing buffer.
6869 performance.clearMarks(formattedMarkName);
6870 performance.clearMeasures(formattedLabel);
6871};
6872
6873var getFiberMarkName = function (label, debugID) {
6874 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