기준으로 정렬하면 어떤 함수가 전체적으로 가장 많은 시간을 소모했는지 알 수 있다. 이 표는
프로그램 실행 시간을 조사하기에 좋은 시작점이다.
표를 보는 데 익숙한 사람은
cProfile
의 콘솔 출력만으로 충분할 수도 있다. 하지만 다른 사
람과 의사소통을 할 때는
snakeviz
출력 같은 다이어그램의 사용을 권장한다. 다른 사람들이
여러분이 말하는 내용의 요점을 빠르게 이해하도록 도와줄 것이다.
69
2
장
프로파일링으로 병목 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.