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
Add section to robolectric.org about profiling Robolectric tests using Android Studio or Gradle (e.g. using YoutKit) #8876
Comments
Is there already some documentation about how to profile Robolectric tests using Android Studio? or should we make one from scratch by performing profiling and taking screenshots for every major step? |
Hi @shashankiitbhu, thanks for taking interest in this issue. The last time I used YourKit (like 3 years ago), the process was something like:
However, it's possible that the flags have changed. |
@hoisie Do we need to add section for both using Android Studio or Gradle (e.g. using YoutKit) or just Android Studio would work? also, should I make a PR directly on robolectric.github.io ? adding a file profiling-tests.md ? |
@shashankiitbhu Actually, we have added it before, but I removed it some months ago as Android Studio can provides the clear information that it doesn't support the newer AGP version, and it's very common and the rule has been used by Google at least 1-2 years. And Gradle version is set by gradle wrapper, and the gradlew will download it for all OSes automatically when we run There is another issue that if we want to full tests of Robolectric itself, there is a requirement for the memory of the development machine, and the best recommended pack is 16GB+ memory. |
But many statements of https://robolectric.org/building-robolectric/ is outdated, as we has used JDK17+ and removed the building of native library to AOSP parts. If you want to update it, it's a great starting. |
@utzcoz so should I start with updating https://robolectric.org/building-robolectric/ With the latest information? Any instructions on where to start in this first? and which sections need to be updated first? |
@shashankiitbhu You can fork "robolectric.github.io" repository and use your skills to find the markdown file for |
can you please give more context on this or resources? So that I can understand it better and update the required markdown file with correct information |
@shashankiitbhu I think #8876 (comment) shows you the repository(https://github.com/robolectric/robolectric.github.io) and the file name that you need to modify. And the left things are that you need to learn. I have added essential documentation in robolectric.github.io to build and check changes of the website locally. |
Hello @utzcoz @hoisie I added the PR for this issue discussed here robolectric/robolectric.github.io#201 Please Review |
I want work on this issues.please assing me |
This would be part of robolectric.github.io.
People often run into performance or memory issues with Robolectric, so it would be nice to have a section detailing how to profile Robolectric tests from either inside of Android Studio or through Gradle + VirualVM.
The text was updated successfully, but these errors were encountered: