Fixes system_server crashes at the end of a job (in #onStopJob)
by correcting the MAX type number.
Bug: 148191073
Test: make
Change-Id: I12b0c65a0b3ad7ab3277a94f51fa2e71d323f862
(cherry picked from commit aa1ac93094)
The prefetching work runs on another process.
Grep everything to workaround it.
Bug: 137403231
Test: atest iorap-functional-tests
Change-Id: Iac1796cb22f0db83ac5ebd78cb40e5cc5ac3a930
(cherry picked from commit 7d76f014eb)
inode2filename is a bit slower now so it takes a while for the compiler
to finish. Increase timeout to compensate.
Bug: 150462358
Test: atest iorap-functional-tests
Change-Id: If1e017ad3c2c441b96dceadd91eb340fdf24302c
Fixes a bug in the scripts which prevented true cold starts from
happening (it was force-stopping the activity after the dropcaches).
Also adds -rfd/--reportfullydrawn to make rfd parsing optional since
most apps don't have it.
Bug: 150237362
Test: run_app_with_prefetch -r cold
Change-Id: I132bfc3ccd4d96f171ed364ef64387bbf2c78091
* Enable perfetto tracing and readahead for testing.
* Extend time limit for JUnit test to 5min.
Bug: 148936893
Test: run atest iorap-functional-tests on Forrest
Change-Id: Iad2b2201abf7736a9c86e4e5f7c1579eb78b2e23
It is broken because selinux is broken in cf_x86,
see bug b/149098310.
Disable it until the above bug is resolved or we come up
with a workaround.
Bug: 148765584
Change-Id: If0ac0f6dd04b1aad693405643f133361ad65f4fc
This reverts commit 7cda47a2d1.
Reason for revert: This test failed frequently for some reason. Disable it to investigate the reason.
Change-Id: I7c9da14396010f4ddf728e5626b8827d471219a8
iorap.stress.memory <optional:bytecount> will mlock that amount of RAM
with randomly-written values, ensuring we avoid kernel optimizations
such as swap, zram, ksm, etc.
Bug: 137397549
Test: iorap.stress.memory # and visually inspect VmLck output.
Change-Id: Icf0786b2607a9a8bc7b6d77aa119abfc0249e7e0
... in preparation for creating a stub library from services.jar
Bug: 139391334
Test: m
Exempt-From-Owner-Approval: cherry-pick from internal
Merged-In: Ifd6cfc77acf2284804a2f64011c2733b5c222369
(cherry picked from commit bae2e90796)
Change-Id: Ifd6cfc77acf2284804a2f64011c2733b5c222369
We want to eventually migrate some of these APIs to be @SystemApi for mainline modules.
The #dumpDebug name is more appropriate than #writeToProto.
Bug: 142279786
Test: Manual
Change-Id: I60793e91cedf6b720d4ecef6a8484f4fed4ff30f
This allows us to quickly test small changes in layout inflation performance.
TEST: mma &&
adb install $OUT/system/app/startop_test_app/startop_test_app.apk;
Run the app
Change-Id: I396157686d1e16ae2a7083a070fe1f622c05b15f
Replaces the SystemServer Benchmark activity with one that has
several sets of benchmarks grouped into categories. This will make it
easier to add more benchmarks that do not logically fit with the
categories we already have.
This does not remove any of the other benchmark activities, but in a
follow up CL, we should remove those since they are covered by the
Interactive Microbenchmarks activity.
This also does not adjust the non-interactive mode, which should also
happen in a followup.
Change-Id: I1d079362df0d32642525ede5b41779d76a5735ec
Add a benchmark to test the cost of initialization checks. The
application run with JIT versus AOT shows the cost of initialization
checks of other classes.
Bug: none
Test: run the test, compile, run the test again
Change-Id: Ic15d872e2284084e003056849453150fb533ca81
* changes:
startop: Add reportFullyDrawn event support in Iorap.
startop: Add timestamps for IntentStarted and ActivityLaunchFinished.
startop: Add reportFullyDrawn event support in framework.
This change adds some of the top binder calls from AppOpsManager, UserManager,
and ConnectivityManager.
Change-Id: I8c87a5d58d68b962927c4886c1bba90f3976d587
ActivityManagerService.getPackageForIntentSender is the second most common
binder transaction during an MPTS run.
Change-Id: I628857d9f323102db3d66da0311f36554cbd797b
This allows benchmarking system server when not sitting at the device. To use
it, launch the NonInteractiveSystemServerBenchmarkActivity and then wait awhile.
The benchmark results will be available at
/sdcard/Android/data/com.android.startop.test/files/benchmark.csv
Change-Id: If7697657228f6e631846fdb79a5a5acfdaf7fe65
This change does a better job of separating the UI code from the benchmark
running code, with the goal of enabling a non-interactive version of the
benchmarks.
Change-Id: Id7a673b9abca69cd9643a487f7b05f965e1f2614
Bug: 137684347
Test: make
Test: run on a crosshatch device and check the reportFullyDrawn event in
the logcat.
Change-Id: Ib8373ecfa1d3579c937242d30cea1ce1396ba632
The pattern is shown in logcat and should match the text in iorap.
Test: python app_startup_runner.py --package com.google.android.GoogleCamera --readahead fadvise --inodes ../tmp.txt -d
Bug: 142350683
Change-Id: Ia708ea8d29f4c97126e9e721284a0d346e19573b