mirror of
https://github.com/Insality/druid.git
synced 2025-06-27 18:37:44 +02:00
2.3 KiB
2.3 KiB
druid.widget.memory_panel API
at /druid/widget/memory_panel/memory_panel.lua
Functions
Fields
- root
- delta_time
- samples_count
- memory_limit
- mini_graph
- max_value
- text_per_second
- text_memory
- memory
- memory_samples
- timer_id
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 Orset_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)