示例#1
0
文件: Log.cs 项目: richfuns/cscore
        public static Stopwatch MethodEntered(params object[] args)
        {
#if DEBUG
            var t = new StackFrame(1, true);
            Log.d(" --> " + t.GetMethodName(false), t.AddTo(args));
#endif
            return(AssertV2.TrackTiming());
        }
示例#2
0
文件: Log.cs 项目: yazici/cscore-1
        public static StopwatchV2 MethodEntered([CallerMemberName] string methodName = null, params object[] args)
        {
#if DEBUG
            args = new StackFrame(1, true).AddTo(args);
#endif
            Log.d(" --> " + methodName, args);
            if (!methodName.IsNullOrEmpty())
            {
                AppFlow.TrackEvent(AppFlow.catMethod, methodName, args);
            }
            return(AssertV2.TrackTiming(methodName));
        }