gedaif.gsymlib Profiling

This file runs profiling on tendril.gedaif.gsymlib.

profiling.gedaif.gsymlib.generate_gsymlib(*args, **kwargs)[source]

Profiles gsymlib generation.

When the gsymlib module is loaded, it automatically generates the gEDA symbol library from the library on the filesystem. This function profiles the generation of the symlib.

Raw execution profile SVG of execution profile

Execution Profile

../../../_images/gsymlib.profile.svg

pstats Output

Mon May 23 23:32:39 2016    /media/ldata/code/tendril/profiling/gedaif/gsymlib/gsymlib.profile

         1330470 function calls (1330028 primitive calls) in 1.339 seconds

   Ordered by: cumulative time

   ncalls  tottime  percall  cumtime  percall filename:lineno(function)
        1    0.000    0.000    1.339    1.339 gsymlib.py:39(generate_gsymlib)
        1    0.001    0.001    1.339    1.339 gsymlib.py:553(gen_symlib)
       81    0.011    0.000    1.310    0.016 gsymlib.py:514(get_folder_symbols)
     1398    0.008    0.000    1.042    0.001 gsymlib.py:215(__init__)
     1398    0.005    0.000    1.027    0.001 gsymlib.py:54(__init__)
     1398    0.003    0.000    0.888    0.001 gsymlib.py:248(_get_sym)
     1398    0.437    0.000    0.883    0.001 gsymlib.py:253(_acq_sym)
  1106778    0.385    0.000    0.385    0.000 {method 'startswith' of 'str' objects}
       71    0.001    0.000    0.227    0.003 gsymlib.py:373(__init__)
       71    0.003    0.000    0.226    0.003 gsymlib.py:407(_get_data)
      519    0.003    0.000    0.157    0.000 __init__.py:151(gen_vals)
     1398    0.013    0.000    0.134    0.000 gsymlib.py:275(_generate_img_repr)
     1010    0.008    0.000    0.111    0.000 __init__.py:192(<lambda>)
     2804    0.010    0.000    0.079    0.000 fsutils.py:244(get_file_mtime)
     7541    0.057    0.000    0.057    0.000 {posix.stat}
       71    0.000    0.000    0.048    0.001 yml.py:37(load)
       71    0.001    0.000    0.048    0.001 __init__.py:64(load)
       71    0.000    0.000    0.046    0.001 constructor.py:35(get_single_data)
      670    0.015    0.000    0.044    0.000 decimal.py:2422(quantize)
     1024    0.011    0.000    0.043    0.000 decimal.py:1236(__mul__)
     2804    0.039    0.000    0.039    0.000 {built-in method fromtimestamp}
     1398    0.034    0.000    0.034    0.000 {method 'readlines' of 'file' objects}
     2806    0.004    0.000    0.030    0.000 genericpath.py:52(getmtime)
     2875    0.005    0.000    0.027    0.000 genericpath.py:15(exists)
     4091    0.020    0.000    0.027    0.000 decimal.py:515(__new__)
     2107    0.010    0.000    0.027    0.000 decimal.py:1640(_fix)
       71    0.017    0.000    0.026    0.000 {method 'get_single_node' of '_yaml.CParser' objects}
   315/82    0.009    0.000    0.025    0.000 os.py:209(walk)
     1680    0.013    0.000    0.024    0.000 decimal.py:2508(_rescale)
     1010    0.010    0.000    0.021    0.000 decimal.py:864(__eq__)
     1010    0.002    0.000    0.020    0.000 decimal.py:2594(to_integral_value)
       71    0.001    0.000    0.019    0.000 constructor.py:42(construct_document)
     1471    0.018    0.000    0.018    0.000 {open}
     5425    0.011    0.000    0.016    0.000 posixpath.py:68(join)
  324/242    0.000    0.000    0.015    0.000 constructor.py:395(construct_yaml_map)
      162    0.001    0.000    0.015    0.000 constructor.py:205(construct_mapping)
     1646    0.006    0.000    0.014    0.000 constructor.py:55(construct_object)
      162    0.002    0.000    0.013    0.000 constructor.py:120(construct_mapping)
     1777    0.009    0.000    0.013    0.000 decimal.py:800(_cmp)
      721    0.002    0.000    0.010    0.000 gsymlib.py:202(is_virtual)
     3487    0.003    0.000    0.009    0.000 decimal.py:5835(_convert_other)
     1583    0.009    0.000    0.009    0.000 gsymlib.py:118(status)
    21526    0.008    0.000    0.008    0.000 {isinstance}
     3214    0.008    0.000    0.008    0.000 decimal.py:441(getcontext)
      162    0.008    0.000    0.008    0.000 {posix.listdir}
     1680    0.002    0.000    0.007    0.000 decimal.py:1769(_round_half_even)
     1544    0.002    0.000    0.007    0.000 posixpath.py:104(splitext)
      423    0.002    0.000    0.007    0.000 electronics.py:265(construct_resistor)
     1398    0.005    0.000    0.007    0.000 posixpath.py:89(split)
       24    0.000    0.000    0.007    0.000 series.py:123(add_value)
     1646    0.004    0.000    0.007    0.000 resolver.py:140(resolve)
      930    0.001    0.000    0.007    0.000 genericpath.py:38(isdir)
      930    0.001    0.000    0.006    0.000 genericpath.py:26(isfile)
      340    0.002    0.000    0.006    0.000 decimal.py:2397(normalize)
      670    0.001    0.000    0.006    0.000 decimal.py:872(__ne__)
     1257    0.001    0.000    0.006    0.000 constructor.py:383(construct_yaml_str)
     3876    0.006    0.000    0.006    0.000 {method 'append' of 'list' objects}
     4138    0.006    0.000    0.006    0.000 {method 'match' of '_sre.SRE_Pattern' objects}
     1544    0.004    0.000    0.005    0.000 genericpath.py:85(_splitext)
      423    0.001    0.000    0.005    0.000 electronics.py:319(parse_resistor)
     4937    0.005    0.000    0.005    0.000 {method 'strip' of 'str' objects}
     1292    0.004    0.000    0.005    0.000 decimal.py:5424(__init__)
     3060    0.003    0.000    0.004    0.000 decimal.py:3724(_dec_from_triple)
     4665    0.004    0.000    0.004    0.000 {method 'split' of 'str' objects}
     5564    0.003    0.000    0.004    0.000 decimal.py:2803(adjusted)
       24    0.000    0.000    0.004    0.000 unitbase.py:412(__repr__)
     1034    0.003    0.000    0.004    0.000 decimal.py:999(__str__)
    11158    0.004    0.000    0.004    0.000 decimal.py:793(__nonzero__)
       24    0.000    0.000    0.004    0.000 unitbase.py:362(natural_repr)
     1406    0.002    0.000    0.003    0.000 constructor.py:163(construct_scalar)
        1    0.000    0.000    0.003    0.003 gsymlib.py:586(_jinja_init)
     1680    0.002    0.000    0.003    0.000 decimal.py:1753(_round_half_up)
        1    0.000    0.000    0.003    0.003 environment.py:791(get_template)
        1    0.000    0.000    0.003    0.003 environment.py:768(_load_template)
     6276    0.003    0.000    0.003    0.000 {method 'endswith' of 'str' objects}
        1    0.000    0.000    0.003    0.003 loaders.py:99(load)
        1    0.000    0.000    0.003    0.003 environment.py:525(compile)
     4486    0.003    0.000    0.003    0.000 {method 'rfind' of 'str' objects}
       24    0.000    0.000    0.003    0.000 electromagnetic.py:189(__init__)
     1680    0.002    0.000    0.003    0.000 decimal.py:728(_check_nans)
       24    0.000    0.000    0.003    0.000 unitbase.py:220(__init__)
      670    0.002    0.000    0.002    0.000 decimal.py:3852(_raise_error)
      156    0.000    0.000    0.002    0.000 constructor.py:390(construct_yaml_seq)
     2777    0.002    0.000    0.002    0.000 decimal.py:3895(Etiny)
     7172    0.002    0.000    0.002    0.000 {built-in method __new__ of type object at 0x919120}
       78    0.000    0.000    0.002    0.000 constructor.py:112(construct_sequence)
    15613    0.002    0.000    0.002    0.000 {len}
      510    0.002    0.000    0.002    0.000 {method 'search' of '_sre.SRE_Pattern' objects}
      510    0.000    0.000    0.002    0.000 re.py:188(compile)
     1257    0.002    0.000    0.002    0.000 {method 'encode' of 'unicode' objects}
     1418    0.002    0.000    0.002    0.000 gsymlib.py:102(value)
     1864    0.000    0.000    0.001    0.000 {abs}
     1406    0.001    0.000    0.001    0.000 nodes.py:27(__init__)
       71    0.001    0.000    0.001    0.000 cyaml.py:30(__init__)
     49/2    0.000    0.000    0.001    0.001 visitor.py:34(visit)
      510    0.001    0.000    0.001    0.000 re.py:226(_compile)
     2005    0.001    0.000    0.001    0.000 gsymlib.py:310(is_subcircuit)
     2447    0.001    0.000    0.001    0.000 decimal.py:3899(Etop)
        1    0.000    0.000    0.001    0.001 environment.py:468(_parse)
      516    0.001    0.000    0.001    0.000 {method 'groupdict' of '_sre.SRE_Match' objects}
     3834    0.001    0.000    0.001    0.000 {method 'get' of 'dict' objects}
      674    0.001    0.000    0.001    0.000 gsymlib.py:339(is_generator)
        1    0.000    0.000    0.001    0.001 environment.py:509(_generate)
        1    0.000    0.000    0.001    0.001 compiler.py:55(generate)
       87    0.000    0.000    0.001    0.000 electronics.py:281(construct_capacitor)
        1    0.000    0.000    0.001    0.001 compiler.py:761(visit_Template)
       57    0.000    0.000    0.001    0.000 decimal.py:1104(__abs__)
        1    0.000    0.000    0.001    0.001 parser.py:895(parse)
     2484    0.001    0.000    0.001    0.000 gsymlib.py:110(footprint)
       57    0.000    0.000    0.001    0.000 decimal.py:1083(__pos__)
     1398    0.001    0.000    0.001    0.000 {method 'rstrip' of 'str' objects}
     1406    0.001    0.000    0.001    0.000 constructor.py:105(construct_scalar)
       24    0.000    0.000    0.001    0.000 unitbase.py:122(__init__)
       71    0.001    0.000    0.001    0.000 constructor.py:260(construct_yaml_float)
      162    0.001    0.000    0.001    0.000 constructor.py:170(flatten_mapping)
     2793    0.001    0.000    0.001    0.000 gsymlib.py:114(status)
        1    0.000    0.000    0.001    0.001 parser.py:847(subparse)
       87    0.000    0.000    0.001    0.000 electronics.py:328(parse_capacitor)
       80    0.000    0.000    0.001    0.000 posixpath.py:139(islink)
       24    0.000    0.000    0.001    0.000 electromagnetic.py:32(parse_resistance)
       57    0.000    0.000    0.001    0.000 decimal.py:907(__ge__)
       16    0.001    0.000    0.001    0.000 decimal.py:1293(__truediv__)
      930    0.001    0.000    0.001    0.000 stat.py:49(S_ISREG)
      930    0.001    0.000    0.001    0.000 stat.py:40(S_ISDIR)
     3360    0.001    0.000    0.001    0.000 decimal.py:700(_isnan)
     1320    0.001    0.000    0.001    0.000 gsymlib.py:94(device)
     2487    0.001    0.000    0.001    0.000 gsymlib.py:106(footprint)
     1646    0.001    0.000    0.001    0.000 resolver.py:88(descend_resolver)
    38/19    0.000    0.000    0.001    0.000 {next}
       40    0.000    0.000    0.001    0.000 decimal.py:880(__lt__)
     1646    0.001    0.000    0.001    0.000 resolver.py:111(ascend_resolver)
     1940    0.001    0.000    0.001    0.000 stat.py:24(S_IFMT)
       19    0.000    0.000    0.001    0.000 lexer.py:342(__next__)
       80    0.001    0.000    0.001    0.000 {posix.lstat}
       19    0.000    0.000    0.001    0.000 lexer.py:548(wrap)
        3    0.000    0.000    0.000    0.000 parser.py:582(parse_tuple)
        3    0.000    0.000    0.000    0.000 parser.py:384(parse_expression)
        3    0.000    0.000    0.000    0.000 parser.py:393(parse_condexpr)
        3    0.000    0.000    0.000    0.000 parser.py:406(parse_or)
      135    0.000    0.000    0.000    0.000 nodes.py:164(iter_child_nodes)
        3    0.000    0.000    0.000    0.000 parser.py:415(parse_and)
        3    0.000    0.000    0.000    0.000 parser.py:424(parse_not)
        3    0.000    0.000    0.000    0.000 parser.py:430(parse_compare)
        4    0.000    0.000    0.000    0.000 gsymlib.py:287(_sch_img_repr)
       25    0.000    0.000    0.000    0.000 lexer.py:594(tokeniter)
        3    0.000    0.000    0.000    0.000 parser.py:452(parse_add)
        3    0.000    0.000    0.000    0.000 parser.py:462(parse_sub)
        3    0.000    0.000    0.000    0.000 parser.py:472(parse_concat)
        3    0.000    0.000    0.000    0.000 parser.py:482(parse_mul)
        3    0.000    0.000    0.000    0.000 parser.py:492(parse_div)
        3    0.000    0.000    0.000    0.000 parser.py:502(parse_floordiv)
        3    0.000    0.000    0.000    0.000 parser.py:512(parse_mod)
     24/3    0.000    0.000    0.000    0.000 visitor.py:41(generic_visit)
        3    0.000    0.000    0.000    0.000 parser.py:522(parse_pow)
      240    0.000    0.000    0.000    0.000 nodes.py:36(__init__)
        3    0.000    0.000    0.000    0.000 parser.py:532(parse_unary)
      514    0.000    0.000    0.000    0.000 {method 'join' of 'str' objects}
        1    0.000    0.000    0.000    0.000 compiler.py:481(blockvisit)
     33/3    0.000    0.000    0.000    0.000 nodes.py:184(find_all)
        1    0.000    0.000    0.000    0.000 compiler.py:1216(visit_Output)
      162    0.000    0.000    0.000    0.000 {method 'update' of 'dict' objects}
        1    0.000    0.000    0.000    0.000 environment.py:517(_compile)
        1    0.000    0.000    0.000    0.000 {compile}
      340    0.000    0.000    0.000    0.000 decimal.py:715(_isinfinity)
       78    0.000    0.000    0.000    0.000 constructor.py:210(construct_yaml_null)
        1    0.000    0.000    0.000    0.000 optimizer.py:23(optimize)
     11/1    0.000    0.000    0.000    0.000 visitor.py:58(generic_visit)
        1    0.000    0.000    0.000    0.000 parser.py:28(__init__)
      496    0.000    0.000    0.000    0.000 gsymlib.py:126(description)
        1    0.000    0.000    0.000    0.000 environment.py:497(_tokenize)
      224    0.000    0.000    0.000    0.000 nodes.py:148(iter_fields)
        3    0.000    0.000    0.000    0.000 parser.py:664(parse_postfix)
        3    0.000    0.000    0.000    0.000 parser.py:692(parse_subscript)
      670    0.000    0.000    0.000    0.000 decimal.py:180(handle)
        2    0.000    0.000    0.000    0.000 loaders.py:167(get_source)
       71    0.000    0.000    0.000    0.000 resolver.py:21(__init__)
        1    0.000    0.000    0.000    0.000 lexer.py:542(tokenize)
      669    0.000    0.000    0.000    0.000 {hash}
        1    0.000    0.000    0.000    0.000 lexer.py:296(__init__)
       80    0.000    0.000    0.000    0.000 stat.py:55(S_ISLNK)
        1    0.000    0.000    0.000    0.000 compiler.py:581(pull_dependencies)
       11    0.000    0.000    0.000    0.000 nodes.py:127(__init__)
      501    0.000    0.000    0.000    0.000 {method 'group' of '_sre.SRE_Match' objects}
        3    0.000    0.000    0.000    0.000 parser.py:548(parse_primary)
        3    0.000    0.000    0.000    0.000 optimizer.py:54(fold)
       71    0.000    0.000    0.000    0.000 constructor.py:20(__init__)
        1    0.000    0.000    0.000    0.000 compiler.py:193(inspect)
       97    0.000    0.000    0.000    0.000 decimal.py:760(_compare_check_nans)
        1    0.000    0.000    0.000    0.000 compiler.py:89(find_undeclared)
       71    0.000    0.000    0.000    0.000 {method 'replace' of 'str' objects}
      198    0.000    0.000    0.000    0.000 {getattr}
        1    0.000    0.000    0.000    0.000 nodes.py:219(set_environment)
       71    0.000    0.000    0.000    0.000 gsymlib.py:507(values)
       49    0.000    0.000    0.000    0.000 visitor.py:26(get_visitor)
        3    0.000    0.000    0.000    0.000 lexer.py:360(expect)
        1    0.000    0.000    0.000    0.000 nodes.py:177(find)
       10    0.000    0.000    0.000    0.000 compiler.py:511(writeline)
       11    0.000    0.000    0.000    0.000 {method 'extend' of 'collections.deque' objects}
       23    0.000    0.000    0.000    0.000 compiler.py:496(write)
       20    0.000    0.000    0.000    0.000 lexer.py:230(__new__)
        3    0.000    0.000    0.000    0.000 compiler.py:1532(visit_Getattr)
       21    0.000    0.000    0.000    0.000 lexer.py:240(test)
        6    0.000    0.000    0.000    0.000 nodes.py:662(as_const)
       82    0.000    0.000    0.000    0.000 {method 'extend' of 'list' objects}
       35    0.000    0.000    0.000    0.000 {range}
        1    0.000    0.000    0.000    0.000 environment.py:249(__init__)
       12    0.000    0.000    0.000    0.000 lexer.py:338(skip_if)
       12    0.000    0.000    0.000    0.000 lexer.py:331(next_if)
        3    0.000    0.000    0.000    0.000 lexer.py:538(_normalize_newlines)
       48    0.000    0.000    0.000    0.000 {method 'write' of 'cStringIO.StringO' objects}
       64    0.000    0.000    0.000    0.000 {method 'index' of 'list' objects}
        1    0.000    0.000    0.000    0.000 environment.py:928(from_code)
        2    0.000    0.000    0.000    0.000 {method 'read' of 'file' objects}
       71    0.000    0.000    0.000    0.000 {method 'lower' of 'str' objects}
        2    0.000    0.000    0.000    0.000 utils.py:146(open_if_exists)
        3    0.000    0.000    0.000    0.000 series.py:107(__init__)
        3    0.000    0.000    0.000    0.000 {method 'sub' of '_sre.SRE_Pattern' objects}
        3    0.000    0.000    0.000    0.000 environment.py:381(iter_extensions)
        4    0.000    0.000    0.000    0.000 gsymlib.py:316(schematic_path)
        2    0.000    0.000    0.000    0.000 utils.py:347(get)
       45    0.000    0.000    0.000    0.000 {setattr}
       13    0.000    0.000    0.000    0.000 compiler.py:516(newline)
       71    0.000    0.000    0.000    0.000 {method 'dispose' of '_yaml.CParser' objects}
        2    0.000    0.000    0.000    0.000 {method 'close' of 'file' objects}
        1    0.000    0.000    0.000    0.000 environment.py:489(preprocess)
       24    0.000    0.000    0.000    0.000 {method 'count' of 'unicode' objects}
        1    0.000    0.000    0.000    0.000 generator.gen.yaml:1(<module>)
       18    0.000    0.000    0.000    0.000 {method 'keys' of 'dict' objects}
        1    0.000    0.000    0.000    0.000 parser.py:855(flush_data)
        2    0.000    0.000    0.000    0.000 {method 'decode' of 'str' objects}
        1    0.000    0.000    0.000    0.000 compiler.py:576(pull_locals)
        3    0.000    0.000    0.000    0.000 compiler.py:278(visit_Name)
        1    0.000    0.000    0.000    0.000 environment.py:60(create_cache)
        2    0.000    0.000    0.000    0.000 utils.py:391(__getitem__)
        2    0.000    0.000    0.000    0.000 loaders.py:22(split_template_path)
        9    0.000    0.000    0.000    0.000 nodes.py:97(get_eval_context)
        1    0.000    0.000    0.000    0.000 utils.py:312(__init__)
        3    0.000    0.000    0.000    0.000 compiler.py:1420(visit_Name)
       28    0.000    0.000    0.000    0.000 {method 'pop' of 'dict' objects}
        2    0.000    0.000    0.000    0.000 utf_8.py:15(decode)
        1    0.000    0.000    0.000    0.000 compiler.py:370(__init__)
        3    0.000    0.000    0.000    0.000 series.py:37(__init__)
        7    0.000    0.000    0.000    0.000 lexer.py:308(__bool__)
       16    0.000    0.000    0.000    0.000 {divmod}
        9    0.000    0.000    0.000    0.000 __init__.py:117(get_series)
        1    0.000    0.000    0.000    0.000 lexer.py:381(get_lexer)
       20    0.000    0.000    0.000    0.000 {intern}
        1    0.000    0.000    0.000    0.000 utils.py:413(__setitem__)
        1    0.000    0.000    0.000    0.000 compiler.py:142(__init__)
        3    0.000    0.000    0.000    0.000 {method 'copy' of 'dict' objects}
       12    0.000    0.000    0.000    0.000 {method 'iteritems' of 'dict' objects}
        7    0.000    0.000    0.000    0.000 _compat.py:59(<lambda>)
        3    0.000    0.000    0.000    0.000 {sorted}
        3    0.000    0.000    0.000    0.000 compiler.py:260(visit_Name)
        4    0.000    0.000    0.000    0.000 nodes.py:81(__init__)
        1    0.000    0.000    0.000    0.000 compiler.py:256(__init__)
        6    0.000    0.000    0.000    0.000 nodes.py:359(as_const)
       13    0.000    0.000    0.000    0.000 {max}
        1    0.000    0.000    0.000    0.000 environment.py:951(_from_namespace)
        2    0.000    0.000    0.000    0.000 {_codecs.utf_8_decode}
        1    0.000    0.000    0.000    0.000 utils.py:318(_postinit)
        6    0.000    0.000    0.000    0.000 {method 'values' of 'dict' objects}
       21    0.000    0.000    0.000    0.000 {method 'end' of '_sre.SRE_Match' objects}
        1    0.000    0.000    0.000    0.000 lexer.py:354(close)
        6    0.000    0.000    0.000    0.000 {method 'format' of 'str' objects}
        1    0.000    0.000    0.000    0.000 __init__.py:1130(debug)
        1    0.000    0.000    0.000    0.000 {method 'splitlines' of 'unicode' objects}
        1    0.000    0.000    0.000    0.000 loaders.py:160(__init__)
        1    0.000    0.000    0.000    0.000 environment.py:90(_environment_sanity_check)
        4    0.000    0.000    0.000    0.000 {method 'join' of 'unicode' objects}
        3    0.000    0.000    0.000    0.000 {method 'replace' of 'unicode' objects}
        3    0.000    0.000    0.000    0.000 nodes.py:462(as_const)
        3    0.000    0.000    0.000    0.000 parser.py:97(is_tuple_end)
        3    0.000    0.000    0.000    0.000 compiler.py:129(is_declared)
        1    0.000    0.000    0.000    0.000 compiler.py:105(__init__)
        4    0.000    0.000    0.000    0.000 compiler.py:857(<genexpr>)
        1    0.000    0.000    0.000    0.000 __init__.py:1345(isEnabledFor)
        2    0.000    0.000    0.000    0.000 _compat.py:82(encode_filename)
        3    0.000    0.000    0.000    0.000 gsymlib.py:90(device)
        1    0.000    0.000    0.000    0.000 {repr}
        3    0.000    0.000    0.000    0.000 parser.py:677(parse_filter_expr)
        1    0.000    0.000    0.000    0.000 {method 'getvalue' of 'cStringIO.StringO' objects}
        1    0.000    0.000    0.000    0.000 compiler.py:234(__init__)
        3    0.000    0.000    0.000    0.000 {method 'pop' of 'list' objects}
        4    0.000    0.000    0.000    0.000 {callable}
        4    0.000    0.000    0.000    0.000 {iter}
        1    0.000    0.000    0.000    0.000 __init__.py:1331(getEffectiveLevel)
        3    0.000    0.000    0.000    0.000 {method 'acquire' of 'thread.lock' objects}
        1    0.000    0.000    0.000    0.000 {cStringIO.StringIO}
        1    0.000    0.000    0.000    0.000 {_functools.reduce}
        1    0.000    0.000    0.000    0.000 {thread.allocate_lock}
        1    0.000    0.000    0.000    0.000 environment.py:864(make_globals)
        1    0.000    0.000    0.000    0.000 environment.py:78(load_extensions)
        2    0.000    0.000    0.000    0.000 compiler.py:455(indent)
        1    0.000    0.000    0.000    0.000 optimizer.py:32(__init__)
        1    0.000    0.000    0.000    0.000 compiler.py:852(<genexpr>)
        3    0.000    0.000    0.000    0.000 {method 'discard' of 'set' objects}
        1    0.000    0.000    0.000    0.000 compiler.py:275(__init__)
        2    0.000    0.000    0.000    0.000 compiler.py:459(outdent)
        6    0.000    0.000    0.000    0.000 {method 'add' of 'set' objects}
        1    0.000    0.000    0.000    0.000 {issubclass}
        1    0.000    0.000    0.000    0.000 {method 'disable' of '_lsprof.Profiler' objects}
        1    0.000    0.000    0.000    0.000 {method 'append' of 'collections.deque' objects}
       11    0.000    0.000    0.000    0.000 {method 'popleft' of 'collections.deque' objects}
        3    0.000    0.000    0.000    0.000 {method 'release' of 'thread.lock' objects}


profiling.gedaif.gsymlib.generate_gsymlib_index(*args, **kwargs)[source]

Profiles gsymlib index generation.

When the gsymlib module is loaded, it automatically generates the gEDA symbol library from the library on the filesystem. This function profiles the generation of the index dictionary.

Raw execution profile SVG of execution profile

Execution Profile

../../../_images/gsymlib_idx.profile.svg

pstats Output

Mon May 23 23:32:39 2016    /media/ldata/code/tendril/profiling/gedaif/gsymlib/gsymlib_idx.profile

         13218 function calls in 0.061 seconds

   Ordered by: cumulative time

   ncalls  tottime  percall  cumtime  percall filename:lineno(function)
        1    0.000    0.000    0.061    0.061 gsymlib.py:63(generate_gsymlib_index)
        1    0.029    0.029    0.061    0.061 gsymlib.py:573(gen_index)
     1324    0.018    0.000    0.018    0.000 {method 'keys' of 'dict' objects}
     1324    0.003    0.000    0.015    0.000 gsymlib.py:143(ident_generic)
     1324    0.002    0.000    0.010    0.000 electronics.py:190(ident_transform)
     1324    0.001    0.000    0.006    0.000 electronics.py:159(no_fp)
     2490    0.006    0.000    0.006    0.000 {method 'match' of '_sre.SRE_Pattern' objects}
     1324    0.001    0.000    0.002    0.000 electronics.py:175(fpiswire)
     1324    0.001    0.000    0.001    0.000 gsymlib.py:90(device)
     1324    0.000    0.000    0.000    0.000 gsymlib.py:106(footprint)
     1324    0.000    0.000    0.000    0.000 gsymlib.py:98(value)
      133    0.000    0.000    0.000    0.000 {method 'append' of 'list' objects}
        1    0.000    0.000    0.000    0.000 {method 'disable' of '_lsprof.Profiler' objects}


profiling.gedaif.gsymlib.main()[source]

The main function for this profiler module.