class Squelcher

Defined at line 24 of file ../../zircon/system/ulib/trace-test-utils/include/trace-test-utils/squelch.h

Squelcher is used to filter out elements of a trace record that may

vary run to run or even within a run and are not germaine to determining

correctness. The canonical example is record timestamps.

The term "squelch" derives from radio circuitry used to remove noise.

Public Methods

std::unique_ptr<Squelcher> Create (const std::vector<std::pair<std::string_view, std::string_view>> & replacements)

|replacements| is a mapping from regular expressions to replacements.

Best illustration is an example. This example removes koids, timestamps

("ts"), and lowercase hex numbers:

Create({

{ "koid\\([0-9]+\\)", "koid(<>)" },

{ "ts: [0-9]+", "ts: <>" },

{ "0x[0-9a-f]+", "<>" },

});

So "ts: 123 mumble koid(456) foo, bar 0xabcd"

becomes "ts: <> mumble koid(<>) foo, bar <>".

Defined at line 11 of file ../../zircon/system/ulib/trace-test-utils/squelch.cc

fbl::String Squelch (const char * str)

Defined at line 24 of file ../../zircon/system/ulib/trace-test-utils/squelch.cc