Skip to content

How to detect memory leaks? #110322

Closed
Closed
@Inisit

Description

@Inisit

我编写的应用(大型项目),存在内存泄漏,内存一直居高不下, 创建的widget实例一直在增加,无法被GC回收掉, 有没有什么办法能准确定位到内存泄漏的代码位置? 就例如Android原生的LeakCanary的功能.

Translation:

The application I wrote (large-scale project) has memory leaks, the memory is always high, and the created widget instances keep increasing and cannot be recycled by GC. Is there any way to accurately locate the code location of the memory leak? For example, Android Native LeakCanary functionality.

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    r: solvedIssue is closed as solved

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions