Import profiler for Vedro framework
Project description
Vedro Import Profiler
Vedro Import Profiler allows you to profile your imports in Vedro projects, helping you identify and optimize import statements for better performance.
Installation
To get started, you first need to install the vedro-import-profiler plugin. Open your terminal and run the following command:
$ pip install vedro-import-profiler
Enabling the Plugin Temporarily
Once installed, you can temporarily enable the Vedro Import Profiler for your current session. Additionally, you may need to disable the assert_rewriter plugin to avoid conflicts. Run these commands in your terminal:
$ vedro plugins enable vedro-import-profiler
$ vedro plugins disable vedro.plugins.assert_rewriter
Running the Profiler
To run the profiler and generate a log of your import times, use the command below. Make sure to prepend PYTHONPROFILEIMPORTTIME=yes to capture the necessary data:
$ PYTHONPROFILEIMPORTTIME=yes vedro run --vedro-import-profiler 2> import.log
Visualizing Import Times
After running the profiler, you can visualize the import times using the tuna viewer. Tuna provides an intuitive interface for analyzing the performance of your imports. To use Tuna with your generated log file, execute the following command:
$ tuna import.log
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vedro-import-profiler-0.0.2.tar.gz.
File metadata
- Download URL: vedro-import-profiler-0.0.2.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
126f8c6452c645cb91fa878bcd56a4e6aec4fcb3666c5e28038f14f0118463d7
|
|
| MD5 |
659813725e6db563d6df3800130609d0
|
|
| BLAKE2b-256 |
71267472f3a6bd5c3c1e3ec818495d54162ab2a2efc44e863c58a03cc503696b
|
File details
Details for the file vedro_import_profiler-0.0.2-py3-none-any.whl.
File metadata
- Download URL: vedro_import_profiler-0.0.2-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
77a32558e54df7d73617ca5afcbb2260595ed63210208a85b6d8f09490927a44
|
|
| MD5 |
09af746b1e6a52c34903c35a29dbe053
|
|
| BLAKE2b-256 |
c386bc844c02a96a4d467abf282cf50dad313f4885e6a4088da38180fda55af0
|