Trace transition to home test part as well.

Bug: b/139029460

Test: Builds fine.
Change-Id: I2b1ce79b8bf4ca03ef5ed4aec71baee9a22ac4af
diff --git a/tests/perf/PerfTransitionTest/src/com/android/apptransition/tests/AppTransitionTests.java b/tests/perf/PerfTransitionTest/src/com/android/apptransition/tests/AppTransitionTests.java
index cf96a49..2f77068 100644
--- a/tests/perf/PerfTransitionTest/src/com/android/apptransition/tests/AppTransitionTests.java
+++ b/tests/perf/PerfTransitionTest/src/com/android/apptransition/tests/AppTransitionTests.java
@@ -255,12 +255,12 @@
                             String.format("%s-%d", appName, (launchCount)));
                 }
                 mLauncherStrategy.launch(appName, mComponentName.split("\\/")[0]);
-                if (null != mAtraceLogger) {
-                    mAtraceLogger.atraceStop();
-                }
                 sleep(mPostLaunchTimeout);
                 mDevice.pressHome();
                 sleep(mPostLaunchTimeout);
+                if (null != mAtraceLogger) {
+                    mAtraceLogger.atraceStop();
+                }
             }
             mComponentName = null;
             // Update the result with the component name