Small tool to translate cryptic info from /proc/*/stat into understandable form. Actually, ps shows most of things needed. But this will show you everything at once in mostly raw format.
Read man 5 proc about meaning of fields. Or just ask me here. Note, on the man page field names has underscore removed. In kernel source it is on its place.
Without arguments procstat reads stat info from stdin.
Download: procstat.c (4k)
Build: gcc -o procstat procstat.c
kef@flash:~$ ./procstat 1
pid: 1
tcomm: (init)
state: S
ppid: 0
pgid: 0
sid: 0
tty_nr: 0
tty_pgrp: -1
flags: 8388864
min_flt: 3706
cmin_flt: 282132
maj_flt: 19
cmaj_flt: 212
utime: 0.030000
stime: 1.540000
cutime: 2.840000
cstime: 2.790000
priority: 16
nice: 0
num_threads: 1
it_real_value: 67.140000
start_time: 11.07 09:07 (11158.38s)
vsize: 1626112
rss: 130
rsslim: 4294967295
start_code: 134512640
end_code: 134540142
start_stack: 2948335296
esp: 2948334000
eip: 2817780216
pending: 0000000000000000
blocked: 0000000000000000
sigign: 0000000057f0d8fc
sigcatch: 00000000280b2603
wchan: 0
zero1: 0
zero2: 0
exit_signal: 0000000000000000
cpu: 0
rt_priority: 0
policy: 0
kef@flash:~$ cat /proc/1/stat
1 (init) S 0 0 0 0 -1 8388864 3706 282132 19 212 3 154 284 279 16 0 1 6714 115 1626112 130 4294967295 134512640 134540142 2948335296 2948334000 2817780216 0 0 1475401980 671819267 0 0 0 0 0 0 0