Skip to content

Instantly share code, notes, and snippets.

@leandrocp
Created May 17, 2018 11:53
Show Gist options
  • Save leandrocp/89a546380e614a6f230e90a83d39facf to your computer and use it in GitHub Desktop.
Save leandrocp/89a546380e614a6f230e90a83d39facf to your computer and use it in GitHub Desktop.
iex> :sys.get_status pid
  {:status, #PID<0.134.0>, {:module, :gen_server},
  [
  [
  "$initial_call": {Sequence.Server, :init, 1},
  "$ancestors": [#PID<0.118.0>, #PID<0.57.0>]
  ],
  :running,
  #PID<0.118.0>,
  [statistics: {{{2017, 12, 23}, {14, 11, 13}}, {:reductions, 14}, 3, 0},
  [
  header: 'Status for generic server <0.134.0>',
  data: [
  {'Status', :running},
  {'Parent', #PID<0.118.0>},
  {'Logged events', []}
  ],
  data: [{'State', 103}]
  ]”
# Excerpt From: Dave Thomas. “Programming Elixir ≥ 1.6"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment