src/vs/workbench/services/extensions/electron-sandbox/extensionHostProfiler.ts/ExtensionHostProfiler/start
class ExtensionHostProfiler:	public async start(): Promise<ProfileSession> {

		const id = await this._profilingService.startProfiling({ port: this._port });

		return {
			stop: once(async () => {
				const profile = await this._profilingService.stopProfiling(id);
				await this._extensionService.whenInstalledExtensionsRegistered();
				const extensions = this._extensionService.extensions;
				return this._distill(profile, extensions);
			})
		};
	}