示例#1
0
 private void EventLog(ProfileInfos oneMin)
 {
     ps.Clear();
     oneMin.AddToEventProperties(ps);
     EventLogger.Instance.Logger(EventLoggerConstant.Frame, "profile",
                                 ps);
 }
示例#2
0
        public void AddTo(ProfileInfos oneMin)
        {
            for (int i = 0; i < (int)CustomProfilerStep.End; i++)
            {
                var info = _profileInfos[i];
                info.AddTo(oneMin.Get((CustomProfilerStep)i));
            }

            foreach (var kv in _customProfile)
            {
                var info = oneMin.Get(kv.Key);
                kv.Value.AddTo(info);
            }
        }
示例#3
0
        public void CopyTo(ProfileInfos last)
        {
            for (int i = 0; i < (int)CustomProfilerStep.End; i++)
            {
                var info = _profileInfos[i];
                info.CopyTo(last.Get((CustomProfilerStep)i));
            }

            foreach (var kv in _customProfile)
            {
                var info = last.Get(kv.Key);
                kv.Value.CopyTo(info);
            }

            Profile = last.Profile;
        }