Example #1
0
        private void InitStatistics()
        {
            Log.Debug("Initializing table element statistics");
            TimeSpanStatisticsItem TSI;

            TimeSpanStatistics = new TimeSpanStatisticsList();

            TableElementCallStatistics = new Dictionary <TableElementTypeEnum, TimeSpanStatisticsItem>();
            foreach (TableElementTypeEnum T in Enum.GetValues(typeof(TableElementTypeEnum)))
            {
                TSI = new TimeSpanStatisticsItem()
                {
                    Name = "{0}".Build(T.ToString()), GroupName = "Pinball - Table element update calls"
                };
                TableElementCallStatistics.Add(T, TSI);
                TimeSpanStatistics.Add(TSI);
            }



            Log.Debug("Table element statistics initialized");
        }
Example #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Pinball"/> class.
        /// </summary>
        public Pinball()
        {

            ThreadInfoList = new ThreadInfoList();
            TimeSpanStatistics = new TimeSpanStatisticsList();

        }
Example #3
0
        private void InitStatistics()
        {
            Log.Debug("Initializing table element statistics");
            TimeSpanStatisticsItem TSI;
            TimeSpanStatistics = new TimeSpanStatisticsList();

            TableElementCallStatistics = new Dictionary<TableElementTypeEnum, TimeSpanStatisticsItem>();
            foreach (TableElementTypeEnum T in Enum.GetValues(typeof(TableElementTypeEnum)))
            {
                TSI = new TimeSpanStatisticsItem() { Name = "{0}".Build(T.ToString()), GroupName = "Pinball - Table element update calls" };
                TableElementCallStatistics.Add(T, TSI);
                TimeSpanStatistics.Add(TSI);
            }



            Log.Debug("Table element statistics initialized");

        }
Example #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Pinball"/> class.
 /// </summary>
 public Pinball()
 {
     ThreadInfoList     = new ThreadInfoList();
     TimeSpanStatistics = new TimeSpanStatisticsList();
 }