LiveDebugger.Services.System.ProcessService behaviour (LiveDebugger v0.1.4)

View Source

This module provides wrappers for system functions that queries processes in the current application.

Summary

Functions

Wrapper for Process.info/2 with some additional logic that returns the initial call of the process.

Wrapper for Process.list/0 that returns a list of pids.

Wrapper for :sys.get_state/1 with additional error handling that returns the state of the process.

Callbacks

initial_call(pid)

@callback initial_call(pid :: pid()) :: mfa() | nil

list()

@callback list() :: [pid()]

state(pid)

@callback state(pid :: pid()) :: {:ok, term()} | {:error, term()}

Functions

initial_call(pid)

@spec initial_call(pid :: pid()) :: mfa() | nil

Wrapper for Process.info/2 with some additional logic that returns the initial call of the process.

list()

@spec list() :: [pid()]

Wrapper for Process.list/0 that returns a list of pids.

state(pid)

@spec state(pid :: pid()) :: {:ok, term()} | {:error, term()}

Wrapper for :sys.get_state/1 with additional error handling that returns the state of the process.