parameters: (self, filename, content)
docstring: Write the summary and top breakdowns of memory usage.
docstring_summary: Write the summary and top breakdowns of memory usage.
docstring_tokens: Write the summary and top breakdowns of memory usage .
function: def _write_memory_files(self, filename, content):
          """Write the summary and top breakdowns of memory usage."""
          file_path = os.path.join(self._profiling_dir, filename)
          file_path = validate_and_normalize_path(file_path)
  
          try:
              with open(file_path, 'w') as json_file:
                  json.dump(content, json_file)
                  os.chmod(file_path, stat.S_IREAD | stat.S_IWRITE)
          except (IOError, OSError) as err:
              logger.critical('Fail to write memory file.\n%s', err)
              raise ProfilerIOException
function_tokens: def _write_memory_files ( self , filename , content ) : file_path = os . path . join ( self . _profiling_dir , filename ) file_path = validate_and_normalize_path ( file_path ) try : with open ( file_path , 'w' ) as json_file : json . dump ( content , json_file ) os . chmod ( file_path , stat . S_IREAD | stat . S_IWRITE ) except ( IOError , OSError ) as err : logger . critical ( 'Fail to write memory file.\n%s' , err ) raise ProfilerIOException