diff options
author | 2024-07-09 10:31:04 +0000 | |
---|---|---|
committer | 2024-07-31 10:15:19 +0000 | |
commit | 1793c0985d065dd00c0c6ab16af5244f25c4080b (patch) | |
tree | 21442b207cffda30dfdfd1aad28ac329f5ac52ba /runtime/entrypoints_order_test.cc | |
parent | 2339531e3a5865f91686a1dc6e0fc24b23936936 (diff) |
Add support for the experimental on-demand tracing
This is to support on-demand tracing. This is behind a flag that is
disabled by default. This is the initial CL that adds support to ART.
There will be a followup CL to add an API that can be used from the
frameworks to request a trace of dex methods that got executed. This is
different from method tracing in two ways:
1. Method tracing is precise whereas this traces on a best effort basis.
2. Unlike method tracing this uses a circular buffer so can only trace a
limited window into the past.
Bug: 352518093
Test: art/test.py
Change-Id: I8d958dd2ccefe8205a6c05b4daf339ea71b5dbc4
Diffstat (limited to 'runtime/entrypoints_order_test.cc')
-rw-r--r-- | runtime/entrypoints_order_test.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/runtime/entrypoints_order_test.cc b/runtime/entrypoints_order_test.cc index 090484eabb..d4014162c4 100644 --- a/runtime/entrypoints_order_test.cc +++ b/runtime/entrypoints_order_test.cc @@ -414,8 +414,10 @@ class EntrypointsOrderTest : public CommonArtTest { EXPECT_OFFSET_DIFFNP( QuickEntryPoints, pReadBarrierForRootSlow, pMethodEntryHook, sizeof(void*)); EXPECT_OFFSET_DIFFNP(QuickEntryPoints, pMethodEntryHook, pMethodExitHook, sizeof(void*)); + EXPECT_OFFSET_DIFFNP(QuickEntryPoints, pMethodExitHook, pRecordEntryTraceEvent, sizeof(void*)); + EXPECT_OFFSET_DIFFNP(QuickEntryPoints, pRecordEntryTraceEvent, pRecordExitTraceEvent, sizeof(void*)); - CHECKED(OFFSETOF_MEMBER(QuickEntryPoints, pMethodExitHook) + sizeof(void*) == + CHECKED(OFFSETOF_MEMBER(QuickEntryPoints, pRecordExitTraceEvent) + sizeof(void*) == sizeof(QuickEntryPoints), QuickEntryPoints_all); } |