Development/iPhone
[옛 글] [iOS] 수행 시간 체크 코드
마즈다
2013. 7. 19. 13:37
반응형
최초 작성일 : 2011/08/22 13:05
성능 튜닝을 위해서 우선적으로 생각해야 할 것이 수행 속도를 확인하는 것이다.
다음 코드는 특정 루틴에 포함시켜 부분적인 수행 속도를 체크하는 코드이다.
// 시작시간 체크
CFTimeInterval startTime = CFAbsoluteTimeGetCurrent();
CFTimeInterval difference = CFAbsoluteTimeGetCurrent() - startTime;
NSLog(@"webViewDidFinishLoad %0.2f|",difference);
반응형