Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

more process and socket info stuff, will break if converted to json

  • Loading branch information...
commit 622ff17d218038b29812835dd86918cca529d3c1 1 parent 21244df
joewilliams authored
Showing with 13 additions and 11 deletions.
  1. +2 −0  .gitignore
  2. +9 −9 include/folsom.hrl
  3. +2 −2 src/folsom_vm_metrics.erl
View
2  .gitignore
@@ -1 +1,3 @@
ebin/*
+*#
+*~
View
18 include/folsom.hrl
@@ -93,28 +93,28 @@
-define(PROCESS_INFO, [
backtrace,
- %binary,
+ binary,
catchlevel,
- %current_function,
- %dictionary
+ current_function,
+ dictionary
error_handler,
garbage_collection,
- %group_leader,
+ group_leader,
heap_size,
- %initial_call,
- %links,
+ initial_call,
+ links,
last_calls,
memory,
- %message_binary,
+ message_binary,
message_queue_len,
messages,
min_heap_size,
min_bin_vheap_size,
- %monitored_by,
+ monitored_by,
monitors,
priority,
reductions,
- %registered_name,
+ registered_name,
sequential_trace_token,
stack_size,
status,
View
4 src/folsom_vm_metrics.erl
@@ -47,10 +47,10 @@ get_system_info() ->
[{Key, convert_system_info({Key, erlang:system_info(Key)})} || Key <- ?SYSTEM_INFO].
get_process_info() ->
- [{binary_to_list(term_to_binary(Pid)), get_process_info(Pid)} || Pid <- processes()].
+ [{Pid, get_process_info(Pid)} || Pid <- processes()].
get_socket_info() ->
- [{term_to_binary(Socket), get_socket_info(Socket)} || Socket <- erlang:ports()].
+ [{Socket, get_socket_info(Socket)} || Socket <- erlang:ports()].
Please sign in to comment.
Something went wrong with that request. Please try again.