디버깅 및 프로파일링¶
이 라이브러리들은 파이썬 개발을 돕습니다: 디버거를 사용하면 코드를 단계별로 실행하고, 스택 프레임을 분석하고, 중단 점을 설정할 수 있으며, 프로파일러는 코드를 실행하고, 프로그램의 병목 지점을 식별할 수 있도록 실행 시간을 자세하게 분석합니다. 감사 이벤트는 이것이 없다면 침입적인 디버깅이나 패치가 필요한 실행 시간 동작에 대한 가시성을 제공합니다.
- 감사 이벤트 표
bdb— 디버거 프레임워크faulthandler— 파이썬 트레이스백 덤프pdb— 파이썬 디버거profiling— 파이썬 프로파일러- 프로파일링 소개
- 프로파일러 선택하기
- 빠른 시작
- 프로파일 출력 이해하기
- 레거시 호환성
profiling.tracing— 결정론적 프로파일러profiling.sampling— 통계 프로파일러- 통계적 프로파일링이란 무엇인가요?
- 간단한 예제
- 명령어들
- 샘플링 구성
- Possible incomplete section title.
Treating the overline as ordinary text because it’s so short.
- Possible incomplete section title. Treating the overline as ordinary text because it’s so short.
- Possible incomplete section title. Treating the overline as ordinary text because it’s so short.
- Possible incomplete section title. Treating the overline as ordinary text because it’s so short.
- GIL 모드
- 예외 모드
- 출력 형식
- 기록 및 재생 워크플로우
- 실시간 모드
- 비동기 인식 프로파일링
- 명령줄 인터페이스
pstats— 프로파일러 통계timeit— 작은 코드 조각의 실행 시간 측정trace— 파이썬 문장 실행 추적tracemalloc— 메모리 할당 추적