src/vs/platform/native/electron-main/nativeHostMainService.ts/NativeHostMainService/profileRenderer
class NativeHostMainService:	async profileRenderer(windowId: number | undefined, session: string, duration: number): Promise<IV8Profile> {
		const win = this.windowById(windowId);
		if (!win || !win.win) {
			throw new Error();
		}
		const profiler = new WindowProfiler(win.win, session, this.logService);
		const result = await profiler.inspect(duration);
		return result;
	}