def sample_mem():
 current_rss = mem_rss()
 _mem_sample.append(current_rss)
 return current_rss

def sample_mem ( ) : current_rss = mem_rss ( ) _mem_sample . append ( current_rss ) return current_rss
sample rss memory usage .