How can you profile a Python script?

Python and python framework

Moderator: leecollings

Post Reply
Jason34521
Posts: 1
Joined: Friday 08 February 2019 8:22
Target OS: Windows
Domoticz version:
Contact:

How can you profile a Python script?

Post by Jason34521 »

Project Euler and other coding contests often have a maximum time to run or people boast of how fast their particular solution runs. With python, sometimes the approaches are somewhat kludgey - i.e., adding timing code to __main__.

What is a good way to profile how long a python program takes to run?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest