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

Function endMark

code/higher-order-components/public/app.js:7491–7504  ·  view source on GitHub ↗
(label, markName, warning$$1)

Source from the content-addressed store, hash-verified

7489};
7490
7491var endMark = function (label, markName, warning$$1) {
7492 var formattedMarkName = formatMarkName(markName);
7493 var formattedLabel = formatLabel(label, warning$$1);
7494 try {
7495 performance.measure(formattedLabel, formattedMarkName);
7496 } catch (err) {}
7497 // If previous mark was missing for some reason, this will throw.
7498 // This could only happen if React crashed in an unexpected place earlier.
7499 // Don't pile on with more errors.
7500
7501 // Clear marks immediately to avoid growing buffer.
7502 performance.clearMarks(formattedMarkName);
7503 performance.clearMeasures(formattedLabel);
7504};
7505
7506var getFiberMarkName = function (label, debugID) {
7507 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