nRF Connect SDK API 3.3.99
Loading...
Searching...
No Matches
app_event_manager_profiler_tracer.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2021 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
11#ifndef _APP_EVENT_MANAGER_PROFILER_TRACER_H_
12#define _APP_EVENT_MANAGER_PROFILER_TRACER_H_
13
14
22#include <app_event_manager_profiler_tracer_priv.h>
23#include <nrf_profiler.h>
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
29
34 void (*profile_fn)(struct log_event_buf *buf, const struct app_event_header *aeh);
35
37 const uint8_t nrf_profiler_arg_cnt;
38
41
44
46 const char *name;
47};
48
49
54#define ENCODE(...) __VA_ARGS__
55
56
69#define APP_EVENT_INFO_DEFINE(ename, types, labels, profile_func) \
70 BUILD_ASSERT(profile_func != NULL); \
71 _APP_EVENT_INFO_DEFINE(ename, ENCODE(types), ENCODE(labels), profile_func)
72
73
74
75#ifdef __cplusplus
76}
77#endif
78
83#endif /* _APP_EVENT_MANAGER_PROFILER_TRACER_H_ */
nrf_profiler_arg
Data types for profiling.
Definition nrf_profiler.h:56
Buffer required for data that is sent with the event.
Definition nrf_profiler.h:70
void(* profile_fn)(struct log_event_buf *buf, const struct app_event_header *aeh)
Definition app_event_manager_profiler_tracer.h:34
enum nrf_profiler_arg * nrf_profiler_arg_types
Definition app_event_manager_profiler_tracer.h:43
const char ** nrf_profiler_arg_labels
Definition app_event_manager_profiler_tracer.h:40
const uint8_t nrf_profiler_arg_cnt
Definition app_event_manager_profiler_tracer.h:37
const char * name
Definition app_event_manager_profiler_tracer.h:46
Event description for profiling.
Definition app_event_manager_profiler_tracer.h:32