# lv_profiler_builtin_private.h (/api/misc/lv_profiler_builtin_private_h)



<RelatedHeaders name="lv_profiler_builtin.h" isPrivate="true" />

<ApiSummary functions="1" structs="1" />

Functions [#functions]

<ApiMember kind="function" name="lv_profiler_builtin_posix_init" file="misc/lv_profiler_builtin_private.h" line="51" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/misc/lv_profiler_builtin_private.h#L51">
  lv_profiler_builtin_posix_init [#lv_profiler_builtin_posix_init]

  Initialize the built-in profiler with POSIX functions.

  ```c title=" " lineNumbers=1
  void lv_profiler_builtin_posix_init(void)
  ```
</ApiMember>

Structs [#structs]

<ApiMember kind="struct" name="_lv_profiler_builtin_config_t">
  \_lv_profiler_builtin_config_t [#_lv_profiler_builtin_config_t]

  LVGL profiler built-in configuration structure.

  | Member         | Type                        | Description                                     |
  | -------------- | --------------------------- | ----------------------------------------------- |
  | `buf_size`     | <ApiLink name="size_t" />   | The size of the buffer used for profiling data  |
  | `tick_per_sec` | <ApiLink name="uint32_t" /> | The number of ticks per second                  |
  | `tick_get_cb`  | `uint64_t(*)(void)`         | Callback function to get the current tick count |
  | `flush_cb`     | `void(*)(const char *buf)`  | Callback function to flush the profiling data   |
  | `tid_get_cb`   | `int(*)(void)`              | Callback function to get the current thread ID  |
  | `cpu_get_cb`   | `int(*)(void)`              | Callback function to get the current CPU        |
</ApiMember>

Dependencies [#dependencies]

<FileIncludes includes="[&#x22;lv_profiler_builtin.h&#x22;]" transitiveIncludes="[&#x22;lv_conf_internal.h&#x22;, &#x22;lv_conf_kconfig.h&#x22;, &#x22;lv_types.h&#x22;]" />
