import { perfLiveCpuSnapshotSupported } from '@/utils/perf/perfLiveCpuSnapshot'; import { PERF_LIVE_POLL_MS_MAX, PERF_LIVE_POLL_MS_MIN, PERF_LIVE_POLL_MS_STEP, setPerfLiveIncludeThreadGroups, setPerfLivePollIntervalMs, usePerfLiveIncludeThreadGroups, usePerfLivePollIntervalMs, } from '@/utils/perf/perfLivePollSettings'; export default function PerfLivePollControls() { const pollMs = usePerfLivePollIntervalMs(); const includeThreadGroups = usePerfLiveIncludeThreadGroups(); if (!perfLiveCpuSnapshotSupported()) return null; const pollSec = (pollMs / 1000).toFixed(1); return (
Live sampling

Scans in-process thread groups each poll (Linux). Off by default — enable only while diagnosing.

); }