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

Function endMark

code/controlled-uncontrolled/public/app.js:6821–6834  ·  view source on GitHub ↗
(label, markName, warning$$1)

Source from the content-addressed store, hash-verified

6819};
6820
6821var endMark = function (label, markName, warning$$1) {
6822 var formattedMarkName = formatMarkName(markName);
6823 var formattedLabel = formatLabel(label, warning$$1);
6824 try {
6825 performance.measure(formattedLabel, formattedMarkName);
6826 } catch (err) {}
6827 // If previous mark was missing for some reason, this will throw.
6828 // This could only happen if React crashed in an unexpected place earlier.
6829 // Don't pile on with more errors.
6830
6831 // Clear marks immediately to avoid growing buffer.
6832 performance.clearMarks(formattedMarkName);
6833 performance.clearMeasures(formattedLabel);
6834};
6835
6836var getFiberMarkName = function (label, debugID) {
6837 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