commit | 1dc43518b287b2c832ff6c2766f0b51db719188a | [log] [tgz] |
---|---|---|
author | Primiano Tucci <primiano@google.com> | Wed Jul 24 22:59:23 2019 +0100 |
committer | Ryan Savitski <rsavitski@google.com> | Fri Aug 16 17:27:46 2019 +0100 |
tree | 549ff25e087a54aae057a60e0cb2a8084115e26f | |
parent | 4cf922c23e65e524556df80ff39e082795ddc51d [diff] |
Don't dlclose libperfetto_android_internal.so once loaded Prior to this CL: 1) the internal .so was lazily loaded the first time a process needed to access a non-NDK function. 2) It was unloaded once done 2 turns out to be particularly problematic because causes all sorts of FD leaks. Most libraries don't handle dlcose() proprely. This CL cleans up a bit the dlopn mechanism, centralizing it in one place and never dlcloses the opened library once loaded. Test: manual using crosshatch-userdebug Bug: 138649485 Change-Id: I21006ebafb35a063c0ca5c9c2d370c049fb27eb8 Merged-In: I21006ebafb35a063c0ca5c9c2d370c049fb27eb8
Perfetto is an open-source project for performance instrumentation and tracing of Linux/Android/Chrome platforms and user-space apps.
See www.perfetto.dev for docs.