MCPcopy Create free account
hub / github.com/pingdotgg/t3code / findServerRootRow

Function findServerRootRow

apps/server/src/diagnostics/ProcessResourceMonitor.ts:71–76  ·  view source on GitHub ↗
(
  rows: ReadonlyArray<ProcessDiagnostics.ProcessRow>,
  serverPid: number,
)

Source from the content-addressed store, hash-verified

69}
70
71function findServerRootRow(
72 rows: ReadonlyArray<ProcessDiagnostics.ProcessRow>,
73 serverPid: number,
74): ProcessDiagnostics.ProcessRow | null {
75 return rows.find((row) => row.pid === serverPid) ?? null;
76}
77
78export function collectMonitoredSamples(input: {
79 readonly rows: ReadonlyArray<ProcessDiagnostics.ProcessRow>;

Callers 1

collectMonitoredSamplesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected