I am taking measurements of times for operations under different ram scenarios on a single device. I want to vary different RAM sizes to capture times of operations. e.g., Nexus 5 has 2GB RAM. I want to restrict RAM to 1GB and perform someoperations. Then I want to restrict RAM to 512MB and perform some operations. Can anyone please guide how can I achieve this. My device is rooted.
I am applying same restrictions on CPU cores using following command: