Skip to content

windows10 python3.7 解析hprof文件好像递归溢出了,测试了别的小一些的hrpof没有问题,看下能否兼容下这种情况呢 #8

Description

@mr-torto

--- Analyzing HPROF file: xxx.hprof ---
HPROF版本: JAVA PROFILE 1.0.3
标识符大小: 4
时间戳: 2026-02-10 17:07:35.558000
正在解析HPROF记录...
正在检测 App 包名...
检测到 App 包名: xxx
正在构建引用图...
正在计算支配树和Retained Size...
解析HPROF文件失败: maximum recursion depth exceeded in comparison
Traceback (most recent call last):
File ".\tools\hprof_parser.py", line 216, in parse
self.calculate_retained_sizes()
File ".\tools\hprof_parser.py", line 916, in calculate_retained_sizes
compute_retained(obj_id)
File ".\tools\hprof_parser.py", line 908, in compute_retained
retained += compute_retained(dominated_id)
File ".\tools\hprof_parser.py", line 908, in compute_retained
retained += compute_retained(dominated_id)
File ".\tools\hprof_parser.py", line 908, in compute_retained
retained += compute_retained(dominated_id)
[Previous line repeated 991 more times]
File ".\tools\hprof_parser.py", line 904, in compute_retained
retained = self.shallow_sizes.get(obj_id, 0)
RecursionError: maximum recursion depth exceeded in comparison

--- Analysis complete. ---

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions