Files
sousa-gecko/testing/mozbase/mozsystemmonitor
Florian Quèze f7faee95a7 Bug 2036915 - Parse the multi-line console.error/debug/dir/dirxml dumper format from test process output, r=ahal.
Console.sys.mjs's createMultiLineDumper() (used by console.debug, error,
exception, dir, and dirxml) emits the header on its own line and then
dumps the argument on subsequent lines. For Error objects that produces:

  console.error:
    Message: <error toString>
    Stack:
      <funcName@file:line:col>
      ...

Each line arrives as a separate process_output entry, so the existing
single-line _CONSOLE_RE only matched the empty header and dropped the
Message/Stack/frame lines into generic 'output' markers.

Loosen _CONSOLE_RE to accept the empty header (with or without a
trailing space, since harness rstripping varies) and add a small state
machine that, when the method is one of the multi-line ones, gathers
the indented Message: and Stack: lines plus the JS-style frame lines
into a single console marker with a populated stack. Lines that break
the expected sequence flush the pending marker and fall back to the
regular parsing path; an unfinished body is flushed when the monitor
stops.

Differential Revision: https://phabricator.services.mozilla.com/D298736
2026-05-12 01:20:17 +00:00
..

================
mozsystemmonitor
================

mozsystemmonitor contains modules for monitoring a running system.

SystemResourceMonitor
=====================

mozsystemmonitor.resourcemonitor.SystemResourceMonitor is class used to
measure system resource usage. It is useful to get a handle on what an
overall system is doing.