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()); }
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)); }