#326 callgraphs are not generated if relative paths are given

v3.0
open
nobody
5
2010-02-07
2010-02-07
No

If profiling is done like:

python -m cProfile -o file.out ../file.py

call graphs are not generated. In order to make it work, file.py must have the absolute path.

The bug is in apidoc.py at the end of the function _update_funcid_to_doc(). The last two lines are:

if funcid in profile_stats.stats:
self._funcid_to_doc[funcid] = val_doc

the filenames in funcid have absolute pathnames, the ones in profile_stats.stats have relative pathnames, so a match is never found.

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks