heartrate Posted on 2023-11-25前言: 可以很好地查看代码执行时命中的行的频率。12345678910import heartrate; heartrate.trace(browser=True)def print_hi(name): for i in range(50): if i % 2 == 1: print("hello")if __name__ == '__main__': print_hi('Hello')Reference