From 96252973d9b142632b7c54f825ce1de2127754bd Mon Sep 17 00:00:00 2001 From: jacqueline Date: Tue, 26 Sep 2023 20:47:07 +1000 Subject: Make task tracing tools conditionally compiled --- src/app_console/app_console.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/app_console/app_console.cpp') diff --git a/src/app_console/app_console.cpp b/src/app_console/app_console.cpp index 67cf57d7..6573ee49 100644 --- a/src/app_console/app_console.cpp +++ b/src/app_console/app_console.cpp @@ -336,6 +336,7 @@ void RegisterDbDump() { esp_console_cmd_register(&cmd); } +#if CONFIG_APPTRACE_ENABLE int CmdTasks(int argc, char** argv) { if (!configUSE_TRACE_FACILITY) { std::cout << "configUSE_TRACE_FACILITY must be enabled" << std::endl; @@ -445,6 +446,7 @@ void RegisterTasks() { .argtable = NULL}; esp_console_cmd_register(&cmd); } +#endif int CmdHeaps(int argc, char** argv) { static const std::pmr::string usage = "usage: heaps"; @@ -636,7 +638,10 @@ auto AppConsole::RegisterExtraComponents() -> void { RegisterDbTracks(); RegisterDbIndex(); RegisterDbDump(); +#if CONFIG_APPTRACE_ENABLE RegisterTasks(); +#endif + RegisterHeaps(); #if CONFIG_HEAP_TRACING -- cgit v1.2.3