code: def Sample(self, profile_name, used_memory):
      
      sample_time = time.time()
      sample = '{0:f}\t{1:s}\t{2:d}\n'.format(
          sample_time, profile_name, used_memory)
      self._WritesString(sample)
docs: Takes a sample for profiling.
  
      Args:
        profile_name (str): name of the profile to sample.
        used_memory (int): amount of used memory in bytes.