Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vedro-import-profiler-0.0.2.tar.gz (7.5 kB view hashes)

Uploaded Source

Built Distribution

vedro_import_profiler-0.0.2-py3-none-any.whl (8.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page