public ProfilingManager() { this.sessionRegistry = new SessionRegistry(); this.hostIpcService = new HostIpcService(this.sessionRegistry); this.hostIpcServer = new Server { Services = { ProfilerHostIpc.ProfilerHostIpc.BindService(this.hostIpcService) }, Ports = { new ServerPort("localhost", 7777, ServerCredentials.Insecure) } }; this.profilerServer = ProfilerIpc.CreateServer(this.sessionRegistry); }
static ProfilingHook() { ProfilingHook.ProfilerClient = ProfilerIpc.CreateClient(); ProfilingHook.onExecCtxCaptured = ProfilingHook.OnExecutionContextCaptured; ProfilingHook.onExecCtxResumed = ProfilingHook.OnExecutionContextResumed; }