use my own gem to determine memory usage