Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
utils.PosixCoreDumpArchiver Class Reference
Inheritance diagram for utils.PosixCoreDumpArchiver:
utils.BaseCoreDumpArchiver utils.LinuxCoreDumpArchiver utils.MacOSCoreDumpArchiver

Public Member Functions

 __init__ (self, search_dir, output_directory)
 
- Public Member Functions inherited from utils.BaseCoreDumpArchiver
 __enter__ (self)
 
 __exit__ (self, *_)
 

Protected Member Functions

 _cleanup (self)
 
 _find_coredump_file (self, crash)
 
- Protected Member Functions inherited from utils.BaseCoreDumpArchiver
 _safe_cleanup (self)
 
 _archive (self, crashes)
 
 _is_shard (self)
 
 _report_missing_crashes (self, missing, throw=False)
 
 _get_file_name (self, file)
 
 _move (self, files)
 
 _tar (self, file)
 
 _upload (self, files)
 
 _find_all_coredumps (self)
 
 _find_unexpected_crashes (self)
 

Protected Attributes

 _search_dir
 
- Protected Attributes inherited from utils.BaseCoreDumpArchiver
 _bucket
 
 _binaries_dir
 
 _search_dir
 
 _output_directory
 

Additional Inherited Members

- Static Protected Attributes inherited from utils.BaseCoreDumpArchiver
str _UNEXPECTED_CRASHES_FILE = 'unexpected-crashes'
 

Detailed Description

Definition at line 813 of file utils.py.

Constructor & Destructor Documentation

◆ __init__()

utils.PosixCoreDumpArchiver.__init__ (   self,
  search_dir,
  output_directory 
)

Reimplemented from utils.BaseCoreDumpArchiver.

Reimplemented in utils.LinuxCoreDumpArchiver, and utils.MacOSCoreDumpArchiver.

Definition at line 815 of file utils.py.

815 def __init__(self, search_dir, output_directory):
816 super(PosixCoreDumpArchiver, self).__init__(search_dir,
817 output_directory)
818

Member Function Documentation

◆ _cleanup()

utils.PosixCoreDumpArchiver._cleanup (   self)
protected

Reimplemented from utils.BaseCoreDumpArchiver.

Definition at line 819 of file utils.py.

819 def _cleanup(self):
820 found = super(PosixCoreDumpArchiver, self)._cleanup()
821 for core in glob.glob(os.path.join(self._search_dir, 'core.*')):
822 found = True
823 TryUnlink(core)
824 return found
825

◆ _find_coredump_file()

utils.PosixCoreDumpArchiver._find_coredump_file (   self,
  crash 
)
protected

Definition at line 826 of file utils.py.

826 def _find_coredump_file(self, crash):
827 core_filename = os.path.join(self._search_dir,
828 'core.{}'.format(crash.pid))
829 if os.path.exists(core_filename):
830 return core_filename
831
832
uint32_t uint32_t * format

Member Data Documentation

◆ _search_dir

utils.PosixCoreDumpArchiver._search_dir
protected

Definition at line 821 of file utils.py.


The documentation for this class was generated from the following file: