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);
 }
Exemple #2
0
 static ProfilingHook()
 {
     ProfilingHook.ProfilerClient    = ProfilerIpc.CreateClient();
     ProfilingHook.onExecCtxCaptured = ProfilingHook.OnExecutionContextCaptured;
     ProfilingHook.onExecCtxResumed  = ProfilingHook.OnExecutionContextResumed;
 }