Home | History | Annotate | Line # | Download | only in Examples
      1 The following are examples of py_funccalls.d.
      2 
      3 This is a simple script to count executed PHP functions. Here it traces
      4 an example program, Code/Python/func_abc.py
      5 
      6 # py_funccalls.d
      7 Tracing... Hit Ctrl-C to end.
      8 ^C
      9 
     10  FILE                             FUNC                                CALLS
     11  UserDict.py                      ?                                       1
     12  UserDict.py                      DictMixin                               1
     13  UserDict.py                      IterableUserDict                        1
     14  UserDict.py                      UserDict                                1
     15  UserDict.py                      __init__                                1
     16  __init__.py                      ?                                       1
     17  __init__.py                      CodecRegistryError                      1
     18  __init__.py                      normalize_encoding                      1
     19  __init__.py                      search_function                         1
     20  aliases.py                       ?                                       1
     21  ascii.py                         ?                                       1
     22  ascii.py                         Codec                                   1
     23  ascii.py                         StreamConverter                         1
     24  ascii.py                         StreamReader                            1
     25  ascii.py                         StreamWriter                            1
     26  ascii.py                         getregentry                             1
     27  codecs.py                        ?                                       1
     28  codecs.py                        Codec                                   1
     29  codecs.py                        StreamReader                            1
     30  codecs.py                        StreamReaderWriter                      1
     31  codecs.py                        StreamRecoder                           1
     32  codecs.py                        StreamWriter                            1
     33  copy_reg.py                      ?                                       1
     34  func_abc.py                      ?                                       1
     35  func_abc.py                      func_a                                  1
     36  func_abc.py                      func_b                                  1
     37  func_abc.py                      func_c                                  1
     38  linecache.py                     ?                                       1
     39  os.py                            ?                                       1
     40  os.py                            _Environ                                1
     41  os.py                            __init__                                1
     42  os.py                            _get_exports_list                       1
     43  posixpath.py                     ?                                       1
     44  posixpath.py                     basename                                1
     45  posixpath.py                     dirname                                 1
     46  site.py                          ?                                       1
     47  site.py                          _Helper                                 1
     48  site.py                          _Printer                                1
     49  site.py                          _init_pathinfo                          1
     50  site.py                          abs__file__                             1
     51  site.py                          addsitepackages                         1
     52  site.py                          aliasmbcs                               1
     53  site.py                          execsitecustomize                       1
     54  site.py                          main                                    1
     55  site.py                          removeduppaths                          1
     56  site.py                          setcopyright                            1
     57  site.py                          setencoding                             1
     58  site.py                          sethelper                               1
     59  site.py                          setquit                                 1
     60  stat.py                          ?                                       1
     61  types.py                         ?                                       1
     62  types.py                         _C                                      1
     63  warnings.py                      ?                                       1
     64  warnings.py                      _OptionError                            1
     65  warnings.py                      _processoptions                         1
     66  posixpath.py                     exists                                  2
     67  posixpath.py                     split                                   2
     68  site.py                          addsitedir                              2
     69  warnings.py                      simplefilter                            2
     70  copy_reg.py                      constructor                             3
     71  copy_reg.py                      pickle                                  3
     72  site.py                          __init__                                3
     73  site.py                          addpackage                              3
     74  stat.py                          S_IFMT                                  6
     75  stat.py                          S_ISDIR                                 6
     76  posixpath.py                     isdir                                   8
     77  os.py                            _exists                                10
     78  <string>                         ?                                      11
     79  posixpath.py                     normcase                               14
     80  site.py                          makepath                               14
     81  posixpath.py                     join                                   20
     82  posixpath.py                     abspath                                22
     83  posixpath.py                     isabs                                  22
     84  posixpath.py                     normpath                               22
     85 
     86 It tells you how many times each function was called, and which file this
     87 function was associated with.  In this case you can see most of the function
     88 calls come from functions within the posixpath.py library.
     89 
     90