Merge "Revert "Removing unused tracing"" into sc-v2-dev

This commit is contained in:
Vadim Tryshev 2021-09-22 20:35:06 +00:00 committed by Android (Google) Code Review
commit f2c35587d6
1 changed files with 3 additions and 0 deletions

View File

@ -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);