Packages
A Phoenix LiveView performance monitoring dashboard for tracking slow endpoints and database queries during development.
Current section
Files
Jump to
Current section
Files
lib/elixir_dashboard/performance_monitor/supervisor.ex
defmodule ElixirDashboard.PerformanceMonitor.Supervisor do
@moduledoc """
Supervisor for the Performance Monitor components.
Add this to your application supervision tree:
children = [
# ... your other children
ElixirDashboard.PerformanceMonitor.Supervisor
]
"""
use Supervisor
def start_link(init_arg) do
Supervisor.start_link(__MODULE__, init_arg, name: __MODULE__)
end
@impl true
def init(_init_arg) do
children = [
ElixirDashboard.PerformanceMonitor.Store
]
Supervisor.init(children, strategy: :one_for_one)
end
end