When saving the yappi profile output as callgrind format, qcachegrind shows a major chunk of time spent in unknown function with output on a console similar to this
Loading "./file_name.profile" : 3808 : "Undefined compressed file index 1887"
Loading "./file_name.profile" : 3808 : "Invalid specification of called file, setting to unknown"
Loading "./file_name.profile" : 3809 : "Undefined compressed function index 1887"
Loading "./file_name.profile" : 3809 : "Invalid called function, setting to unknown"
In _save_as_CALLGRIND function, while adding the function definitions we only iterate over function stats
When saving the yappi profile output as callgrind format, qcachegrind shows a major chunk of time spent in unknown function with output on a console similar to this
In
_save_as_CALLGRIND
function, while adding the function definitions we only iterate over function statsFunction/File definitions of some child functions were not specified in the callgrind format which was causing this issue.