()
| 189 | typeof getLaneLabelMap === 'function' ? getLaneLabelMap() : null; |
| 190 | |
| 191 | function markMetadata() { |
| 192 | markAndClear(`--react-version-${reactVersion}`); |
| 193 | markAndClear(`--profiler-version-${SCHEDULING_PROFILER_VERSION}`); |
| 194 | |
| 195 | const ranges = getInternalModuleRanges(); |
| 196 | if (ranges) { |
| 197 | for (let i = 0; i < ranges.length; i++) { |
| 198 | const range = ranges[i]; |
| 199 | if (isArray(range) && range.length === 2) { |
| 200 | const [startStackFrame, stopStackFrame] = ranges[i]; |
| 201 | |
| 202 | markAndClear(`--react-internal-module-start-${startStackFrame}`); |
| 203 | markAndClear(`--react-internal-module-stop-${stopStackFrame}`); |
| 204 | } |
| 205 | } |
| 206 | } |
| 207 | |
| 208 | if (laneToLabelMap != null) { |
| 209 | const labels = Array.from(laneToLabelMap.values()).join(','); |
| 210 | markAndClear(`--react-lane-labels-${labels}`); |
| 211 | } |
| 212 | } |
| 213 | |
| 214 | function markAndClear(markName: string) { |
| 215 | // This method won't be called unless these functions are defined, so we can skip the extra typeof check. |
no test coverage detected