var diagnostic = LifecycledComponentsReleasePolicy.GetTrackedComponentsDiagnostic(_container.Kernel); var counter = LifecycledComponentsReleasePolicy.GetTrackedComponentsPerformanceCounter(new PerformanceMetricsFactory()); _container.Kernel.ReleasePolicy = new LifecycledComponentsReleasePolicy(diagnostic, counter);
其中_container是你的IOC容器。
然后右键点击计算机->管理出现如下界面
点击+来添加Castle Windsor的性能监控。
原文地址:http://blog.csdn.net/eye_cng/article/details/44277703