public void MarkCreation(int seq, string mangledName) { if (!_broadcastStarted) { Debug.LogErrorFormat("[CoStats] error: invalid broadcast while coroutine '{0}' is being created, ignored.", seq); return; } CoroutineCreation creation = new CoroutineCreation(seq); creation.mangledName = mangledName; creation.stacktrace = StackTraceUtility.ExtractStackTrace(); creation.curFrame = Time.frameCount; _activities.Add(creation); _activeCoroutines.Add(seq); }
public void MarkCreation(int seq, string mangledName) { if (!this._broadcastStarted) { Debug.LogErrorFormat("[CoStats] error: invalid broadcast while coroutine '{0}' is being created, ignored.", new object[1] { (object)seq }); } else { CoroutineCreation coroutineCreation = new CoroutineCreation(seq); coroutineCreation.mangledName = mangledName; coroutineCreation.stacktrace = StackTraceUtility.ExtractStackTrace(); coroutineCreation.curFrame = Time.get_frameCount(); this._activities.Add((CoroutineActivity)coroutineCreation); this._activeCoroutines.Add(seq); } }