Esempio n. 1
0
    private void LogTaskList()
    {
        var log = new StringBuilder();

        var taskList = GlobalDispatchTimer.Instance.GetTaskList();

        foreach (var task in taskList)
        {
            TimerJob timerJob = task.Value;
            var      executor = timerJob.GetExecutor();

            log.AppendFormat("task: {0}, executedTick: {1}, is_disposed: {2}\n",
                             string.Concat(executor.Target, " - ", executor.Method),
                             timerJob.ExecutedTicks, timerJob.IsDisposed());
        }

        log.Insert(0, string.Format("currentTick: {0}\n", Time.realtimeSinceStartup));

        Debugs.Log(log.ToString());
    }