Flutter Engine
The Flutter Engine
Public Member Functions | Static Public Attributes | List of all members
utils.WindowsCoreDumpEnabler Class Reference
Inheritance diagram for utils.WindowsCoreDumpEnabler:

Public Member Functions

def __init__ (self)
 
def __enter__ (self)
 
def __exit__ (self, *_)
 

Static Public Attributes

 CRASHPAD_DB_FOLDER = os.path.join(DART_DIR, 'crashes')
 
 DUMPS_FOLDER = os.path.join(CRASHPAD_DB_FOLDER, 'reports')
 

Detailed Description

This enabler assumes that Dart binary was built with Crashpad support.
In this case DART_CRASHPAD_CRASHES_DIR environment variable allows to
specify the location of Crashpad crashes database. Actual minidumps will
be written into reports subfolder of the database.

Definition at line 581 of file utils.py.

Constructor & Destructor Documentation

◆ __init__()

def utils.WindowsCoreDumpEnabler.__init__ (   self)

Definition at line 590 of file utils.py.

590 def __init__(self):
591 pass
592

Member Function Documentation

◆ __enter__()

def utils.WindowsCoreDumpEnabler.__enter__ (   self)

Definition at line 593 of file utils.py.

593 def __enter__(self):
594 print('INFO: Enabling coredump archiving into {}'.format(
595 WindowsCoreDumpEnabler.CRASHPAD_DB_FOLDER))
596 os.environ[
597 'DART_CRASHPAD_CRASHES_DIR'] = WindowsCoreDumpEnabler.CRASHPAD_DB_FOLDER
598
uint32_t uint32_t * format
def print(*args, **kwargs)
Definition: run_tests.py:49

◆ __exit__()

def utils.WindowsCoreDumpEnabler.__exit__ (   self,
_ 
)

Definition at line 599 of file utils.py.

599 def __exit__(self, *_):
600 del os.environ['DART_CRASHPAD_CRASHES_DIR']
601
602

Member Data Documentation

◆ CRASHPAD_DB_FOLDER

utils.WindowsCoreDumpEnabler.CRASHPAD_DB_FOLDER = os.path.join(DART_DIR, 'crashes')
static

Definition at line 587 of file utils.py.

◆ DUMPS_FOLDER

utils.WindowsCoreDumpEnabler.DUMPS_FOLDER = os.path.join(CRASHPAD_DB_FOLDER, 'reports')
static

Definition at line 588 of file utils.py.


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