v8/test/unittests/heap
Ulan Degenbaev fd554885a8 [heap] Add background GC tracing infrastructure.
A background task can now use GCTracer::BackgroundScope to
trace the time spent in the task. The time shows up in
--trace-gc-nvp output and in the runtime call stats for GC.

The destructor of GCTracer::BackgroundScope increments the
corresponding counter in heap()->tracer()->background_counter_,
which is protected by a mutex.

The GCTracer::Stop function fetches background_counter_ items
into the global scope and into the runtime call stats.

Bug: chromium:758183
Change-Id: Id7bcd5089ba6c027fe9a57eb3f7db1cb5092aec5
Reviewed-on: https://chromium-review.googlesource.com/801694
Commit-Queue: Ulan Degenbaev <ulan@chromium.org>
Reviewed-by: Camillo Bruni <cbruni@chromium.org>
Reviewed-by: Michael Lippautz <mlippautz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#49841}
2017-12-04 17:28:41 +00:00
..
barrier-unittest.cc [heap] Factor out the barrier from Scavenger and add tests 2017-08-30 12:05:56 +00:00
bitmap-unittest.cc [heap] Fix mark bits for partially compacted pages. 2015-10-08 13:49:30 +00:00
embedder-tracing-unittest.cc Reland of "[heap] Report wrappers after processing the marking deque incrementally" 2017-01-02 13:06:11 +00:00
gc-idle-time-handler-unittest.cc [heap] Avoid full GC for large heaps. 2017-06-30 09:43:27 +00:00
gc-tracer-unittest.cc [heap] Add background GC tracing infrastructure. 2017-12-04 17:28:41 +00:00
heap-unittest.cc Revert "[Memory] Move GetRandomMmapAddr from base::OS platform to v8::internal." 2017-10-18 18:48:27 +00:00
item-parallel-job-unittest.cc [heap] Fix ItemParallelJobTest.DistributeItemsMultipleTasks 2017-05-17 08:31:04 +00:00
marking-unittest.cc Normalize casing of hexadecimal digits 2017-12-02 01:24:40 +00:00
memory-reducer-unittest.cc [heap] Reland "Add a guard for restarting the memory reducer after mark-compact." 2016-11-18 13:50:22 +00:00
scavenge-job-unittest.cc Represent speed in GCTracer functions as double instead of int. 2016-03-29 17:34:41 +00:00
slot-set-unittest.cc Fix unused lambda captures. 2017-01-19 21:34:00 +00:00
spaces-unittest.cc [heap] MinorMC: Evacuation for young generation 2017-05-03 21:31:06 +00:00
unmapper-unittest.cc [heap] Refactor page initialization. 2017-08-18 16:28:34 +00:00
worklist-unittest.cc [heap] Introduce on-hold concurrent marking work list 2017-10-10 11:33:39 +00:00