Include some shared libs to static in audioserver
These libraries are only used in this one module so there is no need to include them as shared libraries. Including these as shared libraries cost extra storage space and extra run time memory. There is a side effect of needing to include the libraries' shared dependencies directly in the audioserver module. Taking the averages from showmap across 8 reboots I see savings of: 398885 bytes of storage from installed-files, 60KB private dirty memory from libraries/main binary, 403KB PSS from the libraries/binary only, and 781KB PSS from everything including the stack/heap. go/shared-to-static has steps to reproduce. Test: Boot cuttlefish and: $ adb shell procrank | grep audioserver $ adb shell 'showmap -a $(pidof audioserver)' $ ls -l system/lib64/libaaudioservice.so $ ls -l system/bin/audioserver Test: Same test with Pixel 7 device Bug: 280829178 Change-Id: I83b8c0ab9f8d05c0762e64d6e70f2a6d3d19e6aa
Loading
Please register or sign in to comment