Gary-Hobson opened a new pull request, #8619: URL: https://github.com/apache/nuttx/pull/8619
## Summary commit 1: Handle tcb is empty, so that it can also record before the driver initialization commit 2:Correct systime with perf counter, for higher precision measurements commit 3: Add trace.h and corresponding configuration commit 4: Add the tracepoint of the startup process, and more will need to be added later ## Impact ## Testing ```sh ./tools/configure.sh nucleo-h743zi:trace make -j # in nuttx: trace dump -a ``` Save the log of the serial port to a file, the following is an example: [trace.log](https://github.com/apache/nuttx/files/10804071/trace.log) Open xxx and drag this file into the browser, you will see the following results:(zoom in, zoom out and move through the wasd key)  If you need to verify in other configurations, just enable the following configuration: ``` # Enable perf count, you need to call up_perf_init before starting CONFIG_FS_PROCFS=y CONFIG_SCHED_IRQMONITOR=y CONFIG_SCHED_INSTRUMENTATION_PERFCOUNT=y # Enable note driver to write data to noteram CONFIG_DRIVERS_NOTE=y CONFIG_DRIVERS_NOTECTL=y CONFIG_DRIVERS_NOTERAM_BUFSIZE=16384 CONFIG_DRIVERS_NOTERAM_DEFAULT_NOOVERWRITE=y CONFIG_SCHED_INSTRUMENTATION_DUMP=y CONFIG_SCHED_INSTRUMENTATION_FILTER=y CONFIG_SYSTEM_TRACE=y # Select the trace type to be enabled CONFIG_TRACE=y CONFIG_TRACE_BOARDS=y CONFIG_TRACE_DRIVERS=y CONFIG_TRACE_FS=y CONFIG_TRACE_MM=y CONFIG_TRACE_SCHED=y ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org