src/vs/workbench/contrib/notebook/common/notebookPerformance.ts/getAndClearMarks
export function getAndClearMarks(resource: URI): PerformanceMark | null {
	const key = resource.toString();

	const perfMark = perfMarks.get(key) || null;
	perfMarks.delete(key);
	return perfMark;
}