diff options
| author | jacqueline <me@jacqueline.id.au> | 2023-09-26 20:47:07 +1000 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2023-09-26 20:47:07 +1000 |
| commit | 96252973d9b142632b7c54f825ce1de2127754bd (patch) | |
| tree | fe8db57695887a61986804a2965e740779305405 /src/app_console/app_console.cpp | |
| parent | c36bbe4e7def8b2eae18d44d2345d870e151667d (diff) | |
| download | tangara-fw-96252973d9b142632b7c54f825ce1de2127754bd.tar.gz | |
Make task tracing tools conditionally compiled
Diffstat (limited to 'src/app_console/app_console.cpp')
| -rw-r--r-- | src/app_console/app_console.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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 |
