Update code and add a way to benchmark traces.

The benchmarker treats the trace like a single thread trace.

Bug: 129743239

Test: Ran benchmarks and verified there are no error and numbers seem sane.
Test: Verified locking to a cpu works.
Change-Id: I598d014ff65569271b45ec6567db1c39b26d4e2d
4 files changed