On Feb 10, 11:14 pm, Stef Mientki <[EMAIL PROTECTED]> wrote: > My first test was terrible: a file of 800kB was created, > Trying to view it, resulted in the following: > - Paint Shop Pro told me it was not a valid PNG file, > - Mozilla crashed after 5 minutes, > - GIMP gave me a preview after half an hour ;-)
Impressive! :) > So a few suggestions: > - is there a way to limit the number of nodes ? Not yet, I will have a maximum stack-depth option in the next version. > - "pycallgraph." nodes are "non-information" > (maybe you can find another way to place your "signature" ;-) This should be fixed in the next version. > - how do I exclude modules/files/objects (sorry I'm still a newbie in Python) Say you want to only display your own modules called 'foo' and 'bar': import pycallgraph pycallgraph.settings['include_module'] = ['foo', bar] pycallgraph.start_trace() pycallgraph.make_graph('blah.png') >From the source there are these options for inclusion and exclusion: 'exclude_module': [], 'exclude_class': [], 'exclude_func': [], 'exclude_specific': ['stop_trace', 'make_graph'], 'include_module': [], 'include_class': [], 'include_func': [], 'include_specific': [], "specific" means the whole name of a node, e.g. "foo.MyBarClass.__init__" Gerald -- http://mail.python.org/mailman/listinfo/python-list