OSDN Git Service

Add a way to measure read barrier slow paths
authorMathieu Chartier <mathieuc@google.com>
Thu, 14 Jul 2016 20:30:03 +0000 (13:30 -0700)
committerMathieu Chartier <mathieuc@google.com>
Thu, 21 Jul 2016 01:05:30 +0000 (18:05 -0700)
commit56fe25895e91d34a0a017429468829a20bdd5ae4
treeb000aa1b4a54360db45436a9df872b034e36d79f
parentdc4f4d42aa1712a7ac2e4c24c0aebe58b71ae2c0
Add a way to measure read barrier slow paths

If enabled, this option counts number of slow paths, measures the
total slow path time per GC and records the info into a histogram.
Also added support for systrace to see which threads are performing
slow paths.

Added runtime option -Xgc:measure to enable. The info is dumped
for SIGQUIT.

Test: Volantis boot with CC, test-art-host with CC, run EEAC with CC
and -Xgc:measure

Bug: 30162165

Change-Id: I3c2bdb4156065249c45695f13c77c0579bc8e57a
cmdline/cmdline_types.h
runtime/gc/collector/concurrent_copying-inl.h
runtime/gc/collector/concurrent_copying.cc
runtime/gc/collector/concurrent_copying.h
runtime/gc/collector/garbage_collector.h
runtime/gc/heap.cc
runtime/gc/heap.h
runtime/read_barrier-inl.h
runtime/runtime.cc