improvements to DeterministicSchedule
authorNathan Bronson <ngbronson@fb.com>
Fri, 24 Jul 2015 15:20:45 +0000 (08:20 -0700)
committerfacebook-github-bot-1 <folly-bot@fb.com>
Fri, 24 Jul 2015 16:22:05 +0000 (09:22 -0700)
commita4fc31fc259c144457a3e81e55f4e4160692d6b9
treea87bd6d6c344c1e295ef0b852871fec344aa4438
parent2f0b78348106ffb7d2aff42ace4b09c420b46008
improvements to DeterministicSchedule

Summary: This diff isolates the CacheLocality back end for DeterministicSchedule
from one invocation to the next (the last one was deterministic
across the entire program but not per-DeterministicSchedule instance),
and makes it easy to do extensive tracing of memory accesses during
a deterministic test.  These changes were made while tracking down a
bug, but don't fix any bugs on their own (and in fact don't affect any
production code at all).

Reviewed By: @yfeldblum

Differential Revision: D1842390
folly/test/DeterministicSchedule.cpp
folly/test/DeterministicSchedule.h