-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DO NOT MERGE] Tmp work for exploring Q leak #1392
Conversation
@@ -105,7 +105,9 @@ class HeapAnalyzer constructor( | |||
) | |||
val analysisResults = mutableMapOf<String, RetainedInstance>() | |||
listener.onProgressUpdate(FINDING_WATCHED_REFERENCES) | |||
val (retainedKeys, heapDumpUptimeMillis) = readHeapDumpMemoryStore(parser) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done porting back changes from this file.
@@ -205,7 +205,7 @@ internal object LeakingInstanceTable { | |||
val groupLeakTrace = if (leakingInstance.exclusionStatus == WONT_FIX_LEAK) { | |||
val index = leakTrace.elements.indexOfFirst { element -> element.exclusion != null } | |||
LeakTrace( | |||
elements = listOf(leakTrace.elements[index]) | |||
elements = listOf(leakTrace.elements[index].copy(labels = emptyList())) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done porting back changes from this file.
|
||
if (record is InstanceDumpRecord && parser.className( | ||
record.classId | ||
) == "android.view.ViewRootImpl" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO port this back or find alternative
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tracked in #1389
|
||
if (record is InstanceDumpRecord && parser.className( | ||
record.classId | ||
) == "android.view.inputmethod.InputMethodManager" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO port this back
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done: #1440
var currentRecord = record | ||
while ((currentRecord is InstanceDumpRecord && parser.className( | ||
currentRecord.classId | ||
) in listOf("flow.path.PathContext", "flow.path.Path\$LocalPathWrapper", "mortar.MortarContextWrapper")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO Port this back
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done: #1438
Some of this should make it back to master but I'll need to take it out piece by piece