-
Notifications
You must be signed in to change notification settings - Fork 394
Open
Description
I've a .prof
file exported with the flag --kcachegrind
while running django-extention - runprofileserver
. The file looks like this: users.001928ms.1439448963.prof
Based upon the help, I found that I've to format it well first and then export .dot
file to make the png
.
Here's the what I ran for formatting and generating .dot
file.
$ gprof2dot --format=callgrind --output=output.dot users.001928ms.1439448963.prof
The error I got:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.4/bin/gprof2dot", line 9, in <module>
load_entry_point('gprof2dot==2015.2.3', 'console_scripts', 'gprof2dot')()
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/gprof2dot.py", line 3145, in main
profile = parser.parse()
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/gprof2dot.py", line 1565, in parse
self.profile.integrate(TOTAL_TIME_RATIO, TIME_RATIO)
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/gprof2dot.py", line 478, in integrate
self._integrate_function(function, outevent, inevent)
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/gprof2dot.py", line 483, in _integrate_function
return self._integrate_cycle(function.cycle, outevent, inevent)
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/gprof2dot.py", line 538, in _integrate_cycle
assert abs(call_ratio*total - partial) <= 0.001*call_ratio*total
AssertionError
Any luck / help about it? Why gprof2dot
is crashing?