7 Commits

Author SHA1 Message Date
Sasha Smundak
89414e1ed5 Convert tests/**/Android.mk files to Android.bp, part II
See build/soong/README.md for more information.

Bug: 122332340
Test: treehugger
Change-Id: I886b6536a0ef1c8d21f15ec7ff9fdb9784d5b865
2019-03-12 09:37:32 -07:00
Richard Uhler
d64bdbccf4 Use existing getProcessPid method to get pid of system_server.
Rather than using custom logic for it.
Test: atest -v system-memory-test
Bug: 111830582

Change-Id: I94cb856fbedbdf2b653f448857024f7f79f3de6f
2018-10-22 11:48:19 +01:00
Richard Uhler
cdc122cc2d Add explicit GCs to SystemMemoryTest.
Bug: 111830582
Test: atest -v system-memory-test, manually confirming GC is triggered
      in system server.

Change-Id: I8d755f8be50d1a77c4bfc68bbde67b719e11bd96
2018-09-17 14:21:48 +01:00
Richard Uhler
1d5a713743 SystemMemoryTest: Introduce Device class.
As an abstraction to hold common utilities for interacting with the
device.

Also, coalesce exceptions into a new common TestException class.

Bug: 111830582
Test: atest -v system-memory-test
Change-Id: Ia297427bdcabce38631e7f760149d58c8a5bdd27
2018-09-17 14:21:39 +01:00
Richard Uhler
e9451112d7 Fix checkstyle errors in SystemMemoryTest
Test: java -jar ../../../../prebuilts/checkstyle/checkstyle.jar -c ../../../../prebuilts/checkstyle/android-style.xml `find . -name *.java`
Test: atest -v system-memory-test
Change-Id: I4fedf4f27d8995af090361680b85512b6e48bdac
2018-09-14 14:52:13 +01:00
Richard Uhler
074566985d Log debuggerd -j output when sampling memory use.
To get more logging around what GC has occurred over the course of the
test.

Test: atest -v system-memory-test
Bug: 111830582
Change-Id: I11827c78d73f3ddbf5e4e988c99abb96aebdc03a
2018-09-06 13:31:10 +01:00
Richard Uhler
e9444bf955 Initial setup of a SystemMemoryTest.
Set up a memory test to experiment with actionable memory metrics and
detect regressions in system server memory use.

The initial CUJ is to launch an instrumentation that does nothing for
a few seconds.

The initial metric is to read showmap for system_server and report
VSS, RSS, and PSS.

The CUJ and metrics will be made more interesting once the basic
infrastructure for continuously running the test is set up.

Bug: 111830582
Test: tradefed.sh run commandAndExit template/local_min --template:map test=system-memory-test

Change-Id: I8793adb66de4adab254173585e2c8afc754d4a3a
2018-07-27 08:51:04 +00:00