[android] Fix flaky Android memory consumption measurements
- Dominant language
- F#
- Stars
- 773
- Forks
- 301
- Avg merge
- 6d 9h
- Merged PRs (30d)
- 15
Description
We're seeing occasional crashes (locally and on CI) in Android memory consumption measurements https://github.com/dotnet/performance/blob/1b31842116ca6d984dff1b37207ca332ca849b19/eng/performance/maui_scenarios_android.proj#L76-L79
Error message:
```
Traceback (most recent call last):
File "D:\h\w\B9F509E3\w\ADFB098F\e\test.py", line 16, in
Runner(traits).run()
File "D:\h\w\B9F509E3\p\shared\runner.py", line 482, in run
raise Exception("Failed to capture the reported start time!")
Exception: Failed to capture the reported start time!
```
raised at https://github.com/dotnet/performance/blob/c0c50018b04a353729b149c223b14492390ff969/src/scenarios/shared/runner.py#L482
This is because the memory tracing isn't properly reporting the measured values:
```
[2025/04/10 06:53:55][INFO] Process summary:
[2025/04/10 06:53:55][INFO] * com.companyname.mauiandroiddefault / u0a889 / v1:
[2025/04/10 06:53:55][INFO] TOTAL: 99%
[2025/04/10 06:53:55][INFO] Top: 99%
```
instead of
```
[2025/04/10 06:39:50][INFO] Process summary:
[2025/04/10 06:39:50][INFO] * com.companyname.mauiandroiddefault / u0a4437 / v1:
[2025/04/10 06:39:50][INFO] TOTAL: 99% (128MB-128MB-128MB/123MB-123MB-123MB/227MB-227MB-227MB over 1)
[2025/04/10 06:39:50][INFO] Top: 99% (128MB-128MB-128MB/123MB-123MB-123MB/227MB-227MB-227MB over 1)
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.