#!/bin/bash

cliShowDebugHelp()
{
    isHeader "LibrePortal Debug Commands"
    echo "Diagnostic tools for measuring and inspecting the running install."
    echo ""
    echo "debug load-trace [cmd...]"
    echo "    Run \`libreportal <cmd...>\` with LP_LOAD_TRACE=1 (default: 'help')"
    echo "    and summarise where the source-loading time went — total time,"
    echo "    files loaded, hottest files. Used to measure the gain from lazy"
    echo "    loading (Phase 3+) and find outliers worth optimising."
    echo ""
    echo "  Examples:"
    echo "    libreportal debug load-trace                  # times 'libreportal help'"
    echo "    libreportal debug load-trace peer list        # times 'libreportal peer list'"
    echo "    libreportal debug load-trace backup app delete linkding 1:abc"
}
