Beispiel #1
0
            public override void Render()
            {
                lock (zoneDataLockObject)
                {
                    foreach (KeyValuePair <int, ZoneData> kvp in zoneData)
                    {
                        ZoneData data = kvp.Value;
                        if (data == null)
                        {
                            continue;
                        }

                        float average = data.GetAverageResult();
                        average *= millisecondMultiplier;
                        _parent.DrawString(String.Format("{{{0}}}[{1}] {2}: {3} ms {4}", data.ThreadName, data.ZoneName, _name, average, data.CallCount), Color.White);
                    }
                }
            }