diff options
Diffstat (limited to 'runtime/gc/heap.cc')
| -rw-r--r-- | runtime/gc/heap.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/runtime/gc/heap.cc b/runtime/gc/heap.cc index f0f81fc67e..71c23926d3 100644 --- a/runtime/gc/heap.cc +++ b/runtime/gc/heap.cc @@ -1062,6 +1062,12 @@ void Heap::RemoveSpace(space::Space* space) { } } +uint64_t Heap::GetTotalGcCpuTime() { + uint64_t sum = 0; + sum += young_concurrent_copying_collector_->GetTotalCpuTime(); + sum += concurrent_copying_collector_->GetTotalCpuTime(); + return sum; +} void Heap::DumpGcPerformanceInfo(std::ostream& os) { // Dump cumulative timings. os << "Dumping cumulative Gc timings\n"; |