py-spy icon indicating copy to clipboard operation
py-spy copied to clipboard

sampling only in D state (uninterruptible sleep)

Open JohannesBuchner opened this issue 1 year ago • 0 comments

I would like to profile a python program that spends substantial time in D state (uninterruptible sleep), indicating costly disk IO operations. Would it be possible to run py-spy or modify it, so that it only records samples if it finds the application in this state?

JohannesBuchner avatar Sep 30 '22 11:09 JohannesBuchner