Skip to content
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

Closed
wants to merge 1 commit into from
Closed

Conversation

pyricau
Copy link
Member

@pyricau pyricau commented Jun 15, 2019

Some of this should make it back to master but I'll need to take it out piece by piece

@@ -105,7 +105,9 @@ class HeapAnalyzer constructor(
)
val analysisResults = mutableMapOf<String, RetainedInstance>()
listener.onProgressUpdate(FINDING_WATCHED_REFERENCES)
val (retainedKeys, heapDumpUptimeMillis) = readHeapDumpMemoryStore(parser)
Copy link
Member Author

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()))
Copy link
Member Author

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"
Copy link
Member Author

@pyricau pyricau Jun 21, 2019

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

Copy link
Member Author

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"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO port this back

Copy link
Member Author

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"))
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO Port this back

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done: #1438

@pyricau pyricau closed this Jul 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant