Select one of the symbols to view example projects that use it.
 
Outline
#define ESP_SYSVIEW_TRACE_H_
#include <stdarg.h>
#include "esp_err.h"
#include "SEGGER_RTT.h"
#include "esp_app_trace_util.h"
esp_sysview_flush(uint32_t)
esp_sysview_vprintf(const char *, va_list);
esp_sysview_heap_trace_start(uint32_t);
esp_sysview_heap_trace_stop();
esp_sysview_heap_trace_alloc(void *, uint32_t, const void *);
esp_sysview_heap_trace_free(void *, const void *);
Files
loading...
SourceVuESP-IDF Framework and ExamplesESP-IDFcomponents/app_trace/include/esp_sysview_trace.h
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/* * SPDX-FileCopyrightText: 2018-2021 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 *//* ... */ #ifndef ESP_SYSVIEW_TRACE_H_ #define ESP_SYSVIEW_TRACE_H_ #ifdef __cplusplus extern "C" { #endif #include <stdarg.h> #include "esp_err.h" #include "SEGGER_RTT.h" // SEGGER_RTT_ESP_Flush #include "esp_app_trace_util.h" // ESP_APPTRACE_TMO_INFINITE /** * @brief Flushes remaining data in SystemView trace buffer to host. * * @param tmo Timeout for operation (in us). Use ESP_APPTRACE_TMO_INFINITE to wait indefinetly. * * @return ESP_OK. *//* ... */ static inline esp_err_t esp_sysview_flush(uint32_t tmo) { SEGGER_RTT_ESP_Flush(0, tmo); return ESP_OK; }{ ... } /** * @brief vprintf-like function to sent log messages to the host. * * @param format Address of format string. * @param args List of arguments. * * @return Number of bytes written. *//* ... */ int esp_sysview_vprintf(const char * format, va_list args); /** * @brief Starts SystemView heap tracing. * * @param tmo Timeout (in us) to wait for the host to be connected. Use -1 to wait forever. * * @return ESP_OK on success, ESP_ERR_TIMEOUT if operation has been timed out. *//* ... */ esp_err_t esp_sysview_heap_trace_start(uint32_t tmo); /** * @brief Stops SystemView heap tracing. * * @return ESP_OK. *//* ... */ esp_err_t esp_sysview_heap_trace_stop(void); /** * @brief Sends heap allocation event to the host. * * @param addr Address of allocated block. * @param size Size of allocated block. * @param callers Pointer to array with callstack addresses. * Array size must be CONFIG_HEAP_TRACING_STACK_DEPTH. *//* ... */ void esp_sysview_heap_trace_alloc(void *addr, uint32_t size, const void *callers); /** * @brief Sends heap de-allocation event to the host. * * @param addr Address of de-allocated block. * @param callers Pointer to array with callstack addresses. * Array size must be CONFIG_HEAP_TRACING_STACK_DEPTH. *//* ... */ void esp_sysview_heap_trace_free(void *addr, const void *callers); #ifdef __cplusplus }{...} #endif /* ... */ #endif //ESP_SYSVIEW_TRACE_H_
Details