In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article shows you how the Python tool Heartrate implements real-time visualization, the content is concise and easy to understand, it can definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.
Real-time stack trace (stacktrace)
The Heartate-- tracking program runs like a heart rate monitor.
Heartrate is a tool library of Python, which can visualize the execution process of Python program in real time. Monitor the running Python program as shown below:
As shown in the figure, the number on the left represents the number of times each line of code has been triggered. The box represents the line of code that was recently triggered-the longer the box, the more the number of triggers, and the lighter the color, the more recently triggered. What can the tool do:
Start program tracking
Start the server in a thread
Open a browser window that displays the visualization of the file called by trace ()
Code call highlighting depends on executing (https://github.com/alexmojaki/executing) library), and due to version reasons, hearttrate only supports versions above Python3.5. Pip is installed as follows:
Pip install-user heartrate
The above is how the Python tool Heartrate performs real-time visualization. Have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.