Druid-Extension/api/components/widgets/memory_panel_api.md
2025-04-15 21:49:22 +03:00

1.9 KiB

druid.widget.memory_panel API

at /druid/widget/memory_panel/memory_panel.lua

Functions

Fields

init


memory_panel:init()

on_remove


memory_panel:on_remove()

set_low_memory_limit


memory_panel:set_low_memory_limit([limit])
  • Parameters:
    • [limit] (any):

push_next_value


memory_panel:push_next_value()

update_text_memory


memory_panel:update_text_memory()

Fields

  • root (node)

  • delta_time (number)

  • samples_count (integer)

  • memory_limit (integer)

  • mini_graph (druid.widget.mini_graph): Widget to display a several lines with different height in a row

  • max_value (druid.text): Basic Druid text component. Text components by default have the text size adjusting.

  • text_per_second (druid.text): Basic Druid text component. Text components by default have the text size adjusting.

  • text_memory (druid.text): Basic Druid text component. Text components by default have the text size adjusting.

  • memory (unknown)

  • memory_samples (table)

  • timer_id (unknown)