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.
Log in to post a comment.