Analyze Memory Version 0.3
The memory utilization and the execution time, and arguments of the LUA Global function can be watched. It's easy to find LUA Global objects (function, table, metatable etc.) by using UI (Search Global Objects).
How to watch
- Startup : Input command '/amem' or addon manager icon.
- Open Search Dialog (Search Global Objects) : Push [search] button.
- Search global objects : Input something and press TAB key. For example, input 'Unit' and push TAB key, you can see Unit*** functions.
- Add function for watch : It's two way.
- Check function and push [AddAll] button. This way is for lateral watch. Be careful to add function over 100, or many called function like onEvent, onUpdate.
- Select function (shift + left click) and push [Add] button or ENTER key. This way is the individual addition.
- Watch function : Watch data (Arguments, Time interval, etc.) is displayed when the function is called. This means you have to do some action (from UI or /run etc.) if your want to watch function.
Color of type, meaning of value
- Argument in Analyze Memory UI, Table Data in GameTooltip
| Value | Type | Color | Code |
| N | Number | Sky Blue | 99CCFF |
| S | String | Light Pink | FFB6C1 |
| B | Boolean | Goldenrod | DAA520 |
| T | Table | Green | 00FF00 |
| F | Function | White | FFFFFF |
| U | Userdata | Olive | 808000 |
| R | Thread | Sienna | A0522D |
| I | Nil | Red | FF0000 |
- Objects in Search Global Objects UI
| Object | Color | Code |
| Function | White | FFFFFF |
| Table | Green | 00FF00 |
| Meta Function | Yellow | FFFF00 |
| Meta Table | Dark Green | 008800 |
| Table Data | Orange | FF8000 |