Zetbox.API.PerfCounter.BasePerfMonAppender.Install C# (CSharp) Method

Install() public method

public Install ( ) : void
return void
        public void Install()
        {
            Uninstall();

            Logging.Log.Info("Installing performance counter");
            CounterCreationDataCollection counters = new CounterCreationDataCollection();

            foreach (var desc in GetAllDescs())
            {
                counters.Add(desc.Create());
            }

            PerformanceCounterCategory.Create(Category, "A custom counter category that tracks Zetbox executions",
                PerformanceCounterCategoryType.MultiInstance, counters);
            Logging.Log.Info("Performance counter sucessfully installed");
        }