/imports-probe

Very simple tool to profile Python's imports time.

Primary LanguagePython

Imports Probe

ImportProbe is a Python imports profiler tool designed to analyze the time it takes for each import statement to be executed in your Python codebase. Gain valuable insights into import performance, identify bottlenecks, and optimize your application's startup time. ImportProbe provides a simple yet powerful way to profile and understand the import process, making it an essential tool for Python developers seeking to enhance their code's efficiency.

Imports probe example

Steps

  1. Run your script: python -X importtime <your_script> 2> imports.log.
  2. Start the server: flask run or python app.py.
  3. Upload your file and analyze the chart!

TODO

  • Not parsing properly very deep packages (depth > 3).