# lv_profiler_builtin_private.h (/api/private/debugging/profiler/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="private/debugging/profiler/lv_profiler_builtin_private.h" line="51" url="https://github.com/lvgl/lvgl/tree/e1a0ad863f29742359bc680d6a7d973448ec2285/src/debugging/profiler/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`     | `size_t`                   | The size of the buffer used for profiling data  |
  | `tick_per_sec` | `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;lvgl_public.h&#x22;]" includedBy="[&#x22;lvgl_private.h&#x22;]" />
