platform dependent memory usage monitoring