ATLAS Offline Software
Public Member Functions | List of all members
python.AthOptionsParser.MemCheckAction Class Reference
Inheritance diagram for python.AthOptionsParser.MemCheckAction:
Collaboration diagram for python.AthOptionsParser.MemCheckAction:

Public Member Functions

def __call__ (self, parser, args, values, option_string=None)
 

Detailed Description

Enable Hepheastus

Definition at line 32 of file AthOptionsParser.py.

Member Function Documentation

◆ __call__()

def python.AthOptionsParser.MemCheckAction.__call__ (   self,
  parser,
  args,
  values,
  option_string = None 
)

Definition at line 34 of file AthOptionsParser.py.

34  def __call__(self, parser, args, values, option_string=None):
35 
36  setattr(args, self.dest,
37  [] if values=='all' else [values])
38 
39  # early import is needed for proper offloading later
40  import Hephaestus.MemoryTracker as memtrack # noqa: F401
41 
42  if option_string=='--delete-check':
43  args.memchk_mode = 'delete-check'
44  import Hephaestus.DeleteChecker # noqa: F401
45  else:
46  args.memchk_mode = 'leak-check'
47 
48 

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