-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathREADME.tlsf
More file actions
35 lines (25 loc) · 874 Bytes
/
README.tlsf
File metadata and controls
35 lines (25 loc) · 874 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
TLSF Lua
--------
This is Lua extended with the TLSF O(1) memory allocator [1]. An
additional '-m' command line switch is provided to set the amount of
memory (in bytes) that is pre-allocated.
API
---
Some additonal functions are provided in the built-in 'tlsf' module:
tlsf.warn(bool)
- without argument: return status
- with argument, enable/disable warnings on memory allocations
tlsf.trace(bool)
- without argument: return status
- with argument, enable/disable backtracing on memory allocations
tlsf.stats()
- returns three values:
1. current tlsf memory use
2. highest previous memory use
3. total memory available
License
-------
Lua is licensed under the MIT license. TLSF is licensed under a dual
LGPL / GPLv2(with linking exception) license scheme. TLSF Lua is
also released under the MIT License.
[1] http://rtportal.upv.es/rtmalloc/