title: How to diagnose a python process chewing CPU in linux
body: <p>My python process at certain point in automated scripts starts chewing CPU  on Linux based System (Ubuntu).
  I’m trying to debug this issue in GDB. I'm fairly new to GDB.
  Are there any GDB commands to give information on which thread is using most of the cpu.
  Looking at the thread stack doesn't really give that away. </p>
  
  <p>On windows windbg world  the command  '!runaway'  did give the info on time consumed by each thread in a process. 
  Do we've an equivalent command  here ? 
  Any other suggestions to debug issue ?</p>