summaryrefslogtreecommitdiff
path: root/runtime/javaheapprof
AgeCommit message (Collapse)Author
2024-01-24Add visibility attributes in runtime/j* Dmitrii Ishcheikin
Bug: 260881207 Test: presubmit Test: abtd app_compat_drm Test: abtd app_compat_top_100 Test: abtd app_compat_banking Change-Id: I3edb48d24aac0da006ffd2d634ede22045880a8c
2023-11-13Initialialize jhp's 'enabled_' field Lokesh Gidra
Otherwise, with jemalloc, which doesn't memset(0), we wrongly enable the sampler, which makes allocations slower due to smaller TLABs. Also move IsEnabled() to the header file as it is invoked quite a few times while allocating TLAB. Bug: 310655393 Test: manual testing on devices using jemalloc Change-Id: I63e819488fb980db95080fa17400712bd8efdbe5
2021-03-10Add API to ART/Perfetto Java Heap Profiler (reland) Wessam Hassanein
Add Perfetto API calls to ART Sampling Java Heap Profiler. Test: Passing Tests Local Testing Bug: 160214819 Test: art/tools/run-gtests.sh in ART chroot built on master-art (silvermont target) Test: art/test/testrunner/testrunner.py --target --optimizing in ART chroot built on master-art (silvermont target) Test: art/tools/run-libcore-tests.sh --mode=device in ART chroot built on master-art (silvermont target) Test: m test-art-host-gtest on master-art Test: art/tools/buildbot-build.sh --host && \ art/test/testrunner/testrunner.py --host --64 --optimizing on master-art Bug: 179915934 This reverts commit 2291439187b06d995bb298683246416c75d92740 Change-Id: I600313b9515a2a3ff64361d7307b88d9a76c07e4
2021-03-09Revert "Add API to ART/Perfetto Java Heap Profiler" Nicolas Geoffray
This reverts commit 08e44f1a6289695530fcae887312fe69079ddf9a. Bug: 160214819 Reason for revert: Tests breakage on target: +CANNOT LINK EXECUTABLE "/apex/com.android.art/bin/dex2oatd32": library "heapprofd_client_api.so" not found: needed by /apex/com.android.art/lib/libartd.so in namespace com_android_art Change-Id: I9509cc1e3c85ed4b1ec3347317c0e33fc1f96dea
2021-03-08Add API to ART/Perfetto Java Heap Profiler Wessam Hassanein
Add Perfetto API calls to ART Sampling Java Heap Profiler. Test: Passing Tests Local Testing Bug: 160214819 Change-Id: I4f4740eed89bd7c762888d9f032e6bed970db634
2021-02-05ART/Perfetto Java Heap Profiler Wessam Hassanein
Adding a Sampling Java Heap Profiler to ART and its interface to Perfetto. This cl is the first cl (CL1) in a series of cls described as below to implement the full ART/Perfetto Java Heap Profiler. CL1: ART Java Heap Profiler. This is the main ART sampling profiler code. Tested using the ART testrunner as below as well as VLOG. CL2: Uncomment APEX code ART side. CL3: Add APEX code Perfetto side. CL2 and CL3 will be submitted simultaneously to avoid build failures and to add APEX dependencies. CL4: Uncomment Perfetto API code. To be reviewed by fmayer@ (Perfetto Team). Further Testing, could be full feature testing including Perfetto at this point. CL5: Further tests and/or optimizations can be added as needed. Test: Passing Tests test/testrunner/testrunner.py --host --debug -b test/testrunner/testrunner.py --host --debug -b --64 -t 004-ThreadStress test/testrunner/testrunner.py --host --runtime-option=-XX:PerfettoJavaHeapStackProf=true --debug -b test/testrunner/testrunner.py --host --runtime-option=-XX:PerfettoJavaHeapStackProf=true --debug -b --64 -t 004-ThreadStress Individualized and VLOG testing. Bug: 160214819 Change-Id: I2be4c4e715ce8c3c8ac545e3e14332198b9c2295 (cherry picked from commit 7b149d585b4627ebb389e987c14fe808f2fe698b) Merged-In: I2be4c4e715ce8c3c8ac545e3e14332198b9c2295