press icon indicating copy to clipboard operation
press copied to clipboard

py-spy for bench processes

Open balamurali27 opened this issue 2 years ago • 4 comments

Probably hard to do as is: https://github.com/benfred/py-spy/blob/master/README.md#how-do-i-run-py-spy-in-docker Maybe agent can generate dumps for you

balamurali27 avatar Jun 18 '23 20:06 balamurali27

Btw it works fine outside of docker too. Still requires root though.

ankush avatar Jun 19 '23 04:06 ankush

@Wackyator

adityahase avatar Dec 17 '24 11:12 adityahase

You can cheat by adding

frappe ALL = (root) NOPASSWD: /usr/local/bin/py-spy

in /etc/sudoers.d/frappe and then do sudo py-spy

@Aradhya-Tripathi

adityahase avatar Mar 21 '25 09:03 adityahase

closing - https://github.com/frappe/agent/pull/178

phot0n avatar Nov 19 '25 07:11 phot0n