Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
flavor.valgrind.ValgrindFlavor Class Reference
Inheritance diagram for flavor.valgrind.ValgrindFlavor:
flavor.default.DefaultFlavor

Public Member Functions

def __init__ (self, m, app_name)
 
def step (self, name, cmd, **kwargs)
 
- Public Member Functions inherited from flavor.default.DefaultFlavor
def __init__ (self, module, app_name)
 
def device_path_join (self, *args)
 
def copy_directory_contents_to_device (self, host_dir, device_dir)
 
def copy_directory_contents_to_host (self, device_dir, host_dir)
 
def copy_file_to_device (self, host_path, device_path)
 
def create_clean_device_dir (self, path)
 
def create_clean_host_dir (self, path)
 
def read_file_on_device (self, path, **kwargs)
 
def remove_file_on_device (self, path)
 
def install (self)
 
def cleanup_steps (self)
 
def step (self, name, cmd, **unused_kwargs)
 

Additional Inherited Members

- Public Attributes inherited from flavor.default.DefaultFlavor
 app_name
 
 module
 
 m
 
 device_dirs
 
 host_dirs
 

Detailed Description

Definition at line 12 of file valgrind.py.

Constructor & Destructor Documentation

◆ __init__()

def flavor.valgrind.ValgrindFlavor.__init__ (   self,
  m,
  app_name 
)

Reimplemented from flavor.default.DefaultFlavor.

Definition at line 13 of file valgrind.py.

13 def __init__(self, m, app_name):
14 super(ValgrindFlavor, self).__init__(m, app_name)
15 self._suppressions_file = self.m.path.start_dir.join(
16 'skia', 'tools', 'valgrind.supp')
17 self._valgrind_cipd_dir = self.m.vars.workdir.join('valgrind')
18 self._valgrind_fake_dir = self._valgrind_cipd_dir
19 self._valgrind = self._valgrind_fake_dir.join('bin', 'valgrind')
20 self._lib_dir = self._valgrind_fake_dir.join('lib', 'valgrind')
21
static SkString join(const CommandLineFlags::StringArray &)
Definition: skpbench.cpp:741

Member Function Documentation

◆ step()

def flavor.valgrind.ValgrindFlavor.step (   self,
  name,
  cmd,
**  kwargs 
)

Reimplemented from flavor.default.DefaultFlavor.

Definition at line 22 of file valgrind.py.

22 def step(self, name, cmd, **kwargs):
23 new_cmd = [self._valgrind, '--gen-suppressions=all', '--leak-check=full',
24 '--track-origins=yes', '--error-exitcode=1', '--num-callers=40',
25 '--suppressions=%s' % self._suppressions_file]
26 path_to_app = self.host_dirs.bin_dir.join(cmd[0])
27 new_cmd.append(path_to_app)
28 new_cmd.extend(cmd[1:])
29 with self.m.env({'VALGRIND_LIB': self._lib_dir}):
30 return self.m.run(self.m.step, name, cmd=new_cmd, **kwargs)
static int step(int x, SkScalar min, SkScalar max)
Definition: BlurTest.cpp:215
Definition: __init__.py:1
Definition: run.py:1

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