Add busy loop to stack sampling test

So that the collected trace includes stack samples from the app

Test: `atest ProfilingFrameworkTests` on user device
Test: manually check the captured traces
Bug: 335688597
Flag: EXEMPT - day-to-day bugfix
Change-Id: I231c130052c5f43173908b14a13c02a3dd9bdeab
1 file changed