mplcyberpunk mplcyberpunk



Heartate - Track programs like a heart rate

Heartrate is a Python tool library that allows you to visualize the execution of Python programs in real time. Monitoring a running Python program is shown in the following figure.


As shown, the numbers on the left indicate the number of times each line of code has been triggered. The long boxes indicate the most recently triggered lines of code - longer boxes indicate more triggers, and lighter colors indicate more recent triggers.

What the tool can do:

  • Launcher tracking

  • Start the server in a thread

  • Opens a browser window displaying the visualization of the file in which trace() was called

Code call highlighting relies on executing,Also due to version reasons, hearttrate only supports Python 3.5 or above. pip is installed as follows.


pip install --user heartrate

Heartrate Github

Related articles

Implementing reverse proxies with Django only

When you think of reverse proxies, you say nginx. nginx is the ideal reverse proxy tool. But now the conditions are tough. The server doesn't have nginx and doesn't have root privileges, which means you can't compile and install nginx, and only one port,

What does join mean in python?

Python has two functions .join() and os.path.join(), which do the following: . join(): Concatenate string arrays. Concatenates the elements of a string, a tuple, and a list with the specified characters (separator) to generate a new string os.path.join()

Add new content to the python dict

Adding new content to a dictionary is done by adding new key/value pairs, modifying or deleting existing key/value pairs as in the following examples

How to delete elements in python dict

clear() method is used to clear all the data in the dictionary, because it is an in-place operation, so it returns None (also can be interpreted as no return value)

python crawler how to get cookies

Cookie, refers to the data (usually encrypted) that some websites store on the user's local terminal in order to identify the user and perform session tracking. For example, some websites require login to access a page, before login, you want to grab the

How OpenCV tracks objects in video

Each frame of the video is a picture, tracking an object in the video, decomposition down, in fact, is to find that object in each frame of the picture.