add implementation for get cpu ratio and memory ratio