Skip to content

Commit

Permalink
Merge pull request #227 from ivanyu/ivanyu/gh-225-cli-fix
Browse files Browse the repository at this point in the history
ui: Fix CLI analyzer
  • Loading branch information
ivanyu authored Dec 21, 2022
2 parents 2a5de2f + 305fd24 commit 260f4d7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pyheap-ui/src/analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,10 @@ def retained_heap(args: argparse.Namespace) -> None:
)
)
print("-" * terminal_columns)
for addr, obj, obj_retained_heap in objects_sorted_by_retained_heap(
heap, retained_heap
)[: args.top_n]:
for addr, obj_retained_heap in objects_sorted_by_retained_heap(heap, retained_heap)[
: args.top_n
]:
obj = heap.objects[addr]
type_ = heap.types[obj.type]
print(
row_format.format(
Expand Down

0 comments on commit 260f4d7

Please sign in to comment.