My Workflow To Profile Python Code Using VS Code
Last Updated on July 26, 2023 by Editorial Team
Author(s): ___
Originally published on Towards AI.
Overview
This member-only story is on us. Upgrade to access all of Medium.
This article describes how I use VS Code to profile Python code to identify CPU or memory problems.
To make things more concrete and practical, I will demonstrate how the workflow works by quickly finding the source of high CPU utilization in a real-world project: the RulePolicy class in the rasa open source project in release 2.8.22.
The code to reproduce the workflow described in this article is here.
Imagine you received a bug report claiming that a chatbot built using rasa has unreasonably high CPU utilization and the report writer claims… Read the full blog for free on Medium.
Join thousands of data leaders on the AI newsletter. Join over 80,000 subscribers and keep up to date with the latest developments in AI. From research to projects and ideas. If you are building an AI startup, an AI-related product, or a service, we invite you to consider becoming aΒ sponsor.
Published via Towards AI