Flutter Engine
The Flutter Engine
Classes | Functions | Variables
tools.skpbench.sheet Namespace Reference

Classes

class  FullConfig
 
class  Parser
 

Functions

def get_qualified_name (name, qualifiers)
 
def main ()
 

Variables

 choices
 
 default
 
 help
 
 action
 
 nargs
 
 FLAGS = __argparse.parse_args()
 
tuple RESULT_QUALIFIERS = ('sample_ms', 'clock', 'metric')
 

Function Documentation

◆ get_qualified_name()

def tools.skpbench.sheet.get_qualified_name (   name,
  qualifiers 
)

Definition at line 59 of file sheet.py.

59def get_qualified_name(name, qualifiers):
60 if not qualifiers:
61 return name
62 else:
63 args = ('%s=%s' % (k,v) for k,v in qualifiers.iteritems())
64 return '%s (%s)' % (name, ' '.join(args))
65
def get_qualified_name(name, qualifiers)
Definition: sheet.py:59
static SkString join(const CommandLineFlags::StringArray &)
Definition: skpbench.cpp:741

◆ main()

def tools.skpbench.sheet.main ( )

Definition at line 138 of file sheet.py.

138def main():
139 parser = Parser()
140
141 # Parse the input files.
142 for src in FLAGS.sources:
143 if src == '-':
144 parser.parse_file(sys.stdin)
145 else:
146 with open(src, mode='r') as infile:
147 parser.parse_file(infile)
148
149 # Print the csv.
150 if not FLAGS.open:
151 parser.print_csv()
152 else:
153 dirname = tempfile.mkdtemp()
154 basename = FLAGS.name
155 if os.path.splitext(basename)[1] != '.csv':
156 basename += '.csv';
157 pathname = os.path.join(dirname, basename)
158 with open(pathname, mode='w') as tmpfile:
159 parser.print_csv(outfile=tmpfile)
160 fileuri = urlparse.urljoin('file:', urllib.pathname2url(pathname))
161 print('opening %s' % fileuri)
162 webbrowser.open(fileuri)
163
164
def print(*args, **kwargs)
Definition: run_tests.py:49

Variable Documentation

◆ action

tools.skpbench.sheet.action

Definition at line 40 of file sheet.py.

◆ choices

tools.skpbench.sheet.choices

Definition at line 37 of file sheet.py.

◆ default

tools.skpbench.sheet.default

Definition at line 37 of file sheet.py.

◆ FLAGS

tools.skpbench.sheet.FLAGS = __argparse.parse_args()

Definition at line 50 of file sheet.py.

◆ help

tools.skpbench.sheet.help

Definition at line 38 of file sheet.py.

◆ nargs

tools.skpbench.sheet.nargs

Definition at line 48 of file sheet.py.

◆ RESULT_QUALIFIERS

tuple tools.skpbench.sheet.RESULT_QUALIFIERS = ('sample_ms', 'clock', 'metric')

Definition at line 52 of file sheet.py.