humu/heapprof

writeFlameGraph throws SyntaxError

Closed this issue · 2 comments

Based on example from the documentation:

>>> r.writeFlameGraph('flame-3800.txt', 3800)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.7/site-packages/heapprof/reader.py", line 403, in writeFlameGraph
    self.asFlameGraph(when, output)
AttributeError: 'Reader' object has no attribute 'asFlameGraph'

From what I understand this should be self.flameGraphAt(when, output)

Oops, good catch. Fixing now.

(Whoops, forgot to close the issue in March when the fix was pushed)