diag-trace 5.0.0
µOS++ Tracing Infrastructure
Loading...
Searching...
No Matches

Supplementary C trace utility functions. More...

Functions

void micro_os_plus_trace_dump_args (int argc, char *argv[])
 Write the argv[] array to the trace output channel.

Detailed Description

These are supplementary functions designed to enhance tracing capabilities.

Function Documentation

◆ micro_os_plus_trace_dump_args()

void micro_os_plus_trace_dump_args ( int argc,
char * argv[] )
Parameters
argcThe number of argv[] strings.
argvAn array of pointers to argument strings.
Returns
Nothing.

Formats and writes the argument list in the form main(argc=N, argv=["arg0", "arg1", ...]), followed by a newline. The prefix is always the literal string "main"; for a configurable prefix, use the C++ API micro_os_plus::trace::dump_args(). Intended to be called at the start of main() to record the process arguments in the trace output. Each argument string is quoted; no escaping is applied to the string content.

Definition at line 111 of file trace-c-api.cpp.

112{
114}
static void dump_args(int argc, char *argv[], const char *name="main") noexcept
Send the argv[] array to the trace output channel.

References micro_os_plus::trace::detail::tracer< T >::dump_args().