最終更新:2025-02-04 (火) 13:34:00 (3d)
python -X importtime
Top / python -X importtime
Added in Python 3.7
importtime: show how long each import takes. It shows module name, cumulative time (including nested imports) and self time (excluding nested imports). Note that its output may be broken in multi-threaded application. Typical usage is python3 -X importtime -c 'import asyncio'