src/vs/platform/driver/electron-main/driver.ts/Driver/stopTracing
class Driver:	async stopTracing(windowId: number, name: string, persist: boolean): Promise<void> {
		if (!persist) {
			return;
		}

		const raw = await this.capturePage(windowId);
		const buffer = Buffer.from(raw, 'base64');

		await this.fileService.writeFile(URI.file(join(this.environmentMainService.logsPath, `${name}.png`)), VSBuffer.wrap(buffer));
	}