Druid-Extension/api/components/widgets/memory_panel_api.md
2025-03-18 22:58:13 +02:00

2.3 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 Init, set amount of samples and max value of value means that the line will be at max height Use push_line_value to add a new value to the line Or set_line_value to set a value to the line by index Setup colors inside template file (at minimum and maximum)

  • max_value (druid.text): The component to handle text behaviour over a GUI Text node, mainly used to automatically adjust text size to fit the text area

  • text_per_second (druid.text): The component to handle text behaviour over a GUI Text node, mainly used to automatically adjust text size to fit the text area

  • text_memory (druid.text): The component to handle text behaviour over a GUI Text node, mainly used to automatically adjust text size to fit the text area

  • memory (unknown)

  • memory_samples (table)

  • timer_id (unknown)