fsword's blog

A blogging framework for hackers.

Process info函数参数

| Comments

今天想查一下erlang:process_info函数的参数,余锋同学给了一个链接,结果看到了recon 这个项目,感觉很值得关注,记录一下。

不过,如果只是了解process_info函数有哪些key,可以直接用这种方式:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26

(server@127.0.0.1)32> erlang:process_info(pid(0,1286,0)           
(server@127.0.0.1)32> ).
[{registered_name,channel@1},
 {current_function,{gen_fsm,loop,7}},
 {initial_call,{proc_lib,init_p,5}},
 {status,waiting},
 {message_queue_len,0},
 {messages,[]},
 {links,[<0.1163.0>]},
 {dictionary,[{'$ancestors',[essh_client_sup,essh_sup,
                             <0.1103.0>]},
              {'$initial_call',{essh_client,init,1}}]},
 {trap_exit,false},
 {error_handler,error_handler},
 {priority,normal},
 {group_leader,<0.1102.0>},
 {total_heap_size,17730},
 {heap_size,6772},
 {stack_size,10},
 {reductions,15053},
 {garbage_collection,[{min_bin_vheap_size,46422},
                      {min_heap_size,233},
                      {fullsweep_after,65535},
                      {minor_gcs,1}]},
 {suspending,[]}]

Comments