0
EntLib의 Unity와 차단 메커니즘을 사용하여 메소드 실행 시간 측정을위한 패턴을 알고 있습니까?Unity 차단을 사용한 측정 방법 실행 시간
EntLib의 Unity와 차단 메커니즘을 사용하여 메소드 실행 시간 측정을위한 패턴을 알고 있습니까?Unity 차단을 사용한 측정 방법 실행 시간
당신은 다음과 같은 ICallHandler
(또는 유니티 2.0 IInterceptionBehavior
매우 유사) 구현을 생성하고 객체의 실행 타임 라인에 추가 할 수 있습니다
public class MeasurementHandler : ICallHandler
{
public IMethodReturn Invoke(IMethodInvocation input,
GetNextHandlerDelegate getNext)
{
StartTimer(); // implement it :)
IMethodReturn msg = getNext()(input, getNext);
StopTimer(); // implement it :)
return msg;
}
}