astrofrog / psrecord

Record the CPU and memory activity of a process :chart_with_upwards_trend:

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mac 12.4 crashed

jeffery9 opened this issue · comments

$ psrecord 49119 --plot ~/prof.png --duration 60
Attaching to process 49119
Traceback (most recent call last):
  File "/Users/jeffery/Library/Python/3.8/bin/psrecord", line 7, in <module>
    sys.exit(psrecord.main())
  File "/Users/jeffery/Library/Python/3.8/lib/python/site-packages/psrecord/main.py", line 103, in main
    monitor(pid, logfile=args.log, plot=args.plot, duration=args.duration,
  File "/Users/jeffery/Library/Python/3.8/lib/python/site-packages/psrecord/main.py", line 219, in monitor
    ax.set_ylim(0., max(log['cpu']) * 1.2)
ValueError: max() arg is an empty sequence