memorystats.js

JavaScript library for pulling memory info from the tweak infostats

Download Current Back to Libraries

Getting started

Pulls memory usage from RAMStats.txt. Requires the Cydia tweak infostats.

Call the memoryStats function with an object line 10, set your refresh time in seconds line 11, set your return function with the elements you would like to update with the memory stats.

There is an example project HERE (iWidget)

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
<div id="memory"></div>


<!--include memorystats.js -->
<script src="js/memorystats.js"></script>


<!-- get memory stuff -->
<script>
memoryStats({
  refresh : 10, // in seconds
  success: function(mem){
    document.getElementById('memory').innerHTML = "Free: " + mem.free + "MB Used: " + mem.used + "MB Total: " + mem.totalusable + "MB";                  
  }
});
</script>
Tweet Libraries hosted with ❤ by JunesiPhone