5 .. note:: For a complete list of CLI Debug commands refer to the Debug CLI section of the `Source Code Documents <https://docs.fd.io/vpp/18.07/clicmd.html>`_ .
14 api trace [tx][on|off][first <n>][last <n>][status][free]
15 [post-mortem-on][dump|dump-file|dump-json|save|tojson|save-json|replay <file>][nitems <n>][initializers <file>]
20 Display, replay, or save a binary API trace.
22 Declaration and Implementation
23 -------------------------------
25 **Declaration:** api_trace_command (src/vlibmemory/vlib_api_cli.c line 783)
27 **Implementation:** api_trace_command_fn
34 Clear trace buffer and free memory.
35 Declaration and implementation
37 **Declaration:** clear_trace_cli (src/vlib/trace.c line 519)
39 **Implementation:** cli_clear_trace_buffer
44 `Show Trace <../show/show.html#show-trace>`_
52 Trace given number of packets.
54 Declaration and Implementation
55 -------------------------------
57 **Declaration:** add_trace_cli (src/vlib/trace.c line 405)
59 **Implementation:** cli_add_trace_buffer