diff options
author | Lokesh Gidra <lokeshgidra@google.com> | 2024-05-16 16:50:27 +0000 |
---|---|---|
committer | Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> | 2024-05-16 18:15:14 +0000 |
commit | e6374e9c089c98729068fc25fc981e78b27d6a70 (patch) | |
tree | ccdff5fb83462f45d714c810baa2a96f80d8b5b4 | |
parent | 9b4cbcce1fabb42ab6a04a4e7b5b8f782cb93a91 (diff) | |
download | art-main.tar.gz |
This is to detect if the cause of long running GCs sometime when
preparing for compaction. This function is not expected to take very
long so we can revert this CL afterwards.
Test: manual
Bug: 340644226
Change-Id: Ibda6f21bd989120fc9a9be9f50a332ad3b00147d
-rw-r--r-- | runtime/gc/collector/mark_compact.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/gc/collector/mark_compact.cc b/runtime/gc/collector/mark_compact.cc index ac6a7badb4..5d07ff6081 100644 --- a/runtime/gc/collector/mark_compact.cc +++ b/runtime/gc/collector/mark_compact.cc @@ -1066,6 +1066,7 @@ class MarkCompact::ConcurrentCompactionGcTask : public SelfDeletingTask { }; void MarkCompact::PrepareForCompaction() { + TimingLogger::ScopedTiming t(__FUNCTION__, GetTimings()); uint8_t* space_begin = bump_pointer_space_->Begin(); size_t vector_len = (black_allocations_begin_ - space_begin) / kOffsetChunkSize; DCHECK_LE(vector_len, vector_length_); |