|
KiCad PCB EDA Suite
|
Go to the source code of this file.
Functions | |
| static bool | extractMs (const wxString &aMsg, double &aMs) |
| Pull the millisecond value out of a "... took <ms> ms" tail. | |
| int | RunTraceCaptureSelftest () |
| Run the three fixed self-test lines through a fresh parser and confirm the parsed provider map and total match the expected values. | |
|
static |
Pull the millisecond value out of a "... took <ms> ms" tail.
The engine formats with "%0.3f" under the C locale so the separator is always a dot. We anchor on " took " and the trailing " ms" rather than splitting on spaces, since provider names contain spaces.
Definition at line 44 of file trace_capture.cpp.
Referenced by DRC_PROFILE_LOG::ParseLine().
| int RunTraceCaptureSelftest | ( | ) |
Run the three fixed self-test lines through a fresh parser and confirm the parsed provider map and total match the expected values.
Returns 0 on success, non-zero on any mismatch so main() can propagate it as the process exit code.
Definition at line 121 of file trace_capture.cpp.
References DRC_PROFILE_LOG::ParseLine(), DRC_PROFILE_LOG::ProviderMs(), and DRC_PROFILE_LOG::TotalMs().
Referenced by main().