Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
utils.PosixCoreDumpEnabler Class Reference
Inheritance diagram for utils.PosixCoreDumpEnabler:
utils.LinuxCoreDumpEnabler

Public Member Functions

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

Detailed Description

Definition at line 555 of file utils.py.

Constructor & Destructor Documentation

◆ __init__()

def utils.PosixCoreDumpEnabler.__init__ (   self)

Definition at line 557 of file utils.py.

557 def __init__(self):
558 self._old_limits = None
559

Member Function Documentation

◆ __enter__()

def utils.PosixCoreDumpEnabler.__enter__ (   self)

Reimplemented in utils.LinuxCoreDumpEnabler.

Definition at line 560 of file utils.py.

560 def __enter__(self):
561 self._old_limits = resource.getrlimit(resource.RLIMIT_CORE)
562 resource.setrlimit(resource.RLIMIT_CORE, (-1, -1))
563

◆ __exit__()

def utils.PosixCoreDumpEnabler.__exit__ (   self,
_ 
)

Reimplemented in utils.LinuxCoreDumpEnabler.

Definition at line 564 of file utils.py.

564 def __exit__(self, *_):
565 if self._old_limits != None:
566 resource.setrlimit(resource.RLIMIT_CORE, self._old_limits)
567
568

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