Esempio n. 1
0
        //private static void CheckState()
        //{
        //    if (c_current == null)
        //        throw new InvalidOperationException("There is no active performance management instance.");
        //}

        public static void Start(string name)
        {
            if (c_current != null)
            {
                c_instances.Add(c_current);
                c_current = null;
            }

            c_current = new PerformanceManagementInstance(name);
        }
Esempio n. 2
0
 static PerformanceManager()
 {
     c_instances = new List<PerformanceManagementInstance>();
     c_current = null;
 }
Esempio n. 3
0
        //private static void CheckState()
        //{
        //    if (c_current == null)
        //        throw new InvalidOperationException("There is no active performance management instance.");
        //}
        public static void Start(string name)
        {
            if (c_current != null)
            {
                c_instances.Add(c_current);
                c_current = null;
            }

            c_current = new PerformanceManagementInstance(name);
        }
Esempio n. 4
0
 static PerformanceManager()
 {
     c_instances = new List <PerformanceManagementInstance>();
     c_current   = null;
 }