Skip to content

Can use stackusage to show the running process stack status? #15

Closed Answered by d99kris
xixiguo asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @xixiguo - yes it should be possible. From the README:

stackusage -s SIGUSR1 gedit
kill -s SIGUSR1 `pidof gedit`

This also works if you used -o option, at least in my simple gedit test, like:

stackusage -o log.txt -s SIGUSR1 gedit
kill -s SIGUSR1 `pidof gedit`

So basically you need to use kill to signal stackusage to log the current state. Is that what you tried too? Perhaps you can share the exact commands you used to run stackusage as well as how you called kill, if it's still not working. I haven't tried it on i2cset, but I don't think there's anything special with i2cset - unless it has some special signal handling overriding/preventing use of SIGUSR1, SIGUSR2 or others.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by d99kris
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants