cprofile

Using cProfile results with KCacheGrind

陌路散爱 提交于 2019-11-26 04:59:49
问题 I\'m using cProfile to profile my Python program. Based upon this talk I was under the impression that KCacheGrind could parse and display the output from cProfile. However, when I go to import the file, KCacheGrind just displays an \'Unknown File Format\' error in the status bar and sits there displaying nothing. Is there something special I need to do before my profiling stats are compatible with KCacheGrind? ... if profile: import cProfile profileFileName = \'Profiles/pythonray_\' + time