private void EventLog(ProfileInfos oneMin) { ps.Clear(); oneMin.AddToEventProperties(ps); EventLogger.Instance.Logger(EventLoggerConstant.Frame, "profile", ps); }
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); } }
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; }