The ControlProgram, Spyder libraries and macros you create consume memory. The function blocks, Physical points, and NVs or Objects have different memory usage. Some elements of a function block may use a Float RAM while some others could be using Non-Volatile RAM.
The Resource Usage View provides details of the total memory and the used memory as a result of all the logic you have used in creating the macro.
To view the Resource Usage View of the macro: