mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-27 15:26:58 +00:00
Logging to figure out why first dump didn't result in assertion
Bug: 195319692 Test: presubmit Change-Id: I4a80541a58eb8f630211de4b90836c435f6d41b2
This commit is contained in:
@@ -153,6 +153,8 @@ public abstract class AbstractLauncherUiTest {
|
||||
public static String dumpHprofData() {
|
||||
String result;
|
||||
if (sDumpWasGenerated) {
|
||||
Log.d("b/195319692", "dump has already been generated by another test",
|
||||
new Exception());
|
||||
result = "dump has already been generated by another test";
|
||||
} else {
|
||||
try {
|
||||
@@ -167,6 +169,7 @@ public abstract class AbstractLauncherUiTest {
|
||||
"am dumpheap " + device.getLauncherPackageName() + " " + fileName);
|
||||
}
|
||||
sDumpWasGenerated = true;
|
||||
Log.d("b/195319692", "sDumpWasGenerated := true", new Exception());
|
||||
result = "memory dump filename: " + fileName;
|
||||
} catch (Throwable e) {
|
||||
Log.e(TAG, "dumpHprofData failed", e);
|
||||
|
||||
Reference in New Issue
Block a user