py-spy: ptrace errors on linux kernel older than v4.7

Profiling this works fine:

while True:
    pass

But when I run py-spy on this, it no longer shows any output (clears the screen, then stays empty; no top view):

import numpy as np

while True:
    pass

Any ideas?

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 23 (13 by maintainers)

Most upvoted comments

adding --nonblocking seems to help