SUSEUnbound
Would you like to react to this message? Create an account in a few clicks or log in to continue.


 
HomeHome  PortalPortal  Latest imagesLatest images  SearchSearch  RegisterRegister  Log in  
openFate
watch process stack, sampled at 1s intervals Fatelogo_small openFATE - openSUSE feature tracking
Similar topics
Latest topics
» Difference between 42.2 and 42.1
watch process stack, sampled at 1s intervals Emptyby findoctr Thu Dec 15, 2016 7:53 pm

» openSUSE Leap 42.1 ?
watch process stack, sampled at 1s intervals Emptyby findoctr Fri Feb 05, 2016 8:09 pm

» Happy Turkey Day
watch process stack, sampled at 1s intervals Emptyby findoctr Thu Nov 26, 2015 1:45 pm

» Happy 4th of July!
watch process stack, sampled at 1s intervals Emptyby bozo Sat Jul 04, 2015 12:56 pm

» It's been a while ...
watch process stack, sampled at 1s intervals Emptyby bozo Mon Feb 23, 2015 8:34 pm

» Mondo chillers
watch process stack, sampled at 1s intervals Emptyby bozo Wed Feb 18, 2015 5:11 am

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search
IRC Channel
You can also find us on IRC's freenode.net as #suseunbound.

 

 watch process stack, sampled at 1s intervals

Go down 
AuthorMessage
welan
Admin
welan


Posts : 248
Join date : 2010-02-23
Age : 61
Location : snow drift in minnesota

watch process stack, sampled at 1s intervals Empty
PostSubject: watch process stack, sampled at 1s intervals   watch process stack, sampled at 1s intervals EmptySat Mar 27, 2010 7:02 pm

This command repeatedly gets the specified process' stack using pstack (which is an insanely clever and tiny wrapper for gdb) and displays it fullscreen. Since it updates every second, you rapidly get an idea of where your program is stuck or spending time.
The 'tac' is used to make the output grow down, which makes it less jumpy. If the output is too big for your screen, you can always leave the 'tac' off to see the inner calls. (Or, better yet--get a bigger screen.)
Caveats: Won't work with stripped binaries and probably not well with threads, but you don't want to strip your binaries or use threads anyway.
watch -n 1 'pstack 12345 | tac'
Back to top Go down
 
watch process stack, sampled at 1s intervals
Back to top 
Page 1 of 1
 Similar topics
-
» Finding the working dir of the process running on a specific port

Permissions in this forum:You cannot reply to topics in this forum
SUSEUnbound :: Help Section :: Tips and Tweaks-
Jump to: