Unlock the full potential of AI with Building LLMs for Production—our 470+ page guide to mastering LLMs with practical projects and expert insights!


My Workflow To Profile Python Code Using VS Code
Latest   Machine Learning

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.


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

Feedback ↓