Hmm, it's been a while since I had to dig around the parameters of ps. It bugs me I can't seem to find some easy way to show memory usage for each thread.
Code:
ps -p 3060 -O pid,spid,pmem,vsz,rss,cmd -c -T
PID PID SPID %MEM VSZ RSS CMD S TTY TIME COMMAND
3060 3060 3060 14.7 5647660 1770520 sigil S ? 00:08:30 sigil
Code:
$ ps -T -p 3060
PID SPID TTY TIME CMD
3060 3060 ? 00:07:00 sigil
3060 3062 ? 00:00:04 sigil
3060 3063 ? 00:00:14 QXcbEventReader
3060 3064 ? 00:00:00 QDBusConnection
3060 3065 ? 00:00:04 Qt bearer threa
3060 3066 ? 00:00:01 Thread (pooled)
3060 3067 ? 00:00:01 Thread (pooled)
3060 3068 ? 00:00:01 Thread (pooled)
3060 3069 ? 00:00:01 Thread (pooled)
3060 3071 ? 00:00:00 sigil:disk$0
3060 3076 ? 00:00:06 sigil
3060 3079 ? 00:00:17 sigil
3060 3080 ? 00:00:17 sigil
3060 3081 ? 00:00:16 sigil
3060 3120 ? 00:00:00 sigil
3060 3121 ? 00:00:00 sigil
3060 3122 ? 00:00:00 sigil