File tree 2 files changed +40
-2
lines changed
2 files changed +40
-2
lines changed Original file line number Diff line number Diff line change
1
+ // Copyright 2024 Espressif Systems (Shanghai) PTE LTD
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+
1
15
#include " freertos_stats.h"
2
16
#include " sdkconfig.h"
3
- // #undef CONFIG_FREERTOS_VTASKLIST_INCLUDE_COREID
4
- // #undef CONFIG_FREERTOS_GENERATE_RUN_TIME_STATS
5
17
6
18
#if CONFIG_FREERTOS_USE_TRACE_FACILITY
7
19
#include " freertos/FreeRTOS.h"
@@ -97,5 +109,7 @@ void printRunningTasks(Print & printer) {
97
109
vPortFree ( pxTaskStatusArray );
98
110
printer.println ();
99
111
}
112
+ #else
113
+ printer.println (" FreeRTOS trace facility is not enabled." );
100
114
#endif /* CONFIG_FREERTOS_USE_TRACE_FACILITY */
101
115
}
Original file line number Diff line number Diff line change
1
+ // Copyright 2024 Espressif Systems (Shanghai) PTE LTD
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+
1
15
#pragma once
16
+
17
+ #ifdef __cplusplus
18
+
2
19
#include "Print.h"
3
20
21
+ /*
22
+ * Executing this function will cause interrupts and
23
+ * the scheduler to be blocked for some time.
24
+ * Please use only for debugging purposes.
25
+ */
4
26
void printRunningTasks (Print & printer );
27
+
28
+ #endif
You can’t perform that action at this time.
0 commit comments