summaryrefslogtreecommitdiff
path: root/compiler/common_compiler_test.h
diff options
context:
space:
mode:
author Mythri Alle <mythria@google.com> 2024-03-20 17:06:51 +0000
committer Mythri Alle <mythria@google.com> 2024-03-21 15:46:28 +0000
commite67193fe33f6aaf336715aab04bdca8bf95acdb6 (patch)
tree3e59daba2e6dcd90af76d592d64bcae5d86c7669 /compiler/common_compiler_test.h
parent24ff85059ba87dd1cde6370364cbb2259beff0ff (diff)
Use monotonic clock to record the start time of the trace
Android Studio uses monotonic clock timestamps obtained from other places to match against the timestamps provided by ART's method traces to construct a CPU profile. So specify the initial start time obtained from the monotonic timer. The rest of the timestamps are time elapsed from this start point and it is okay to use the timestamp counters to compute the elapsed time. Both monotonic clock and the timestamp counters give the same elapsed time from the given start time. Bug: 318052824 Test: art/test.py -t 2246 Change-Id: I33ec06d951c2203111060c6e6100bfcfffdc4b83
Diffstat (limited to 'compiler/common_compiler_test.h')
0 files changed, 0 insertions, 0 deletions