Use thread-specific clocks for fiber time measurements
commit68f9e81ce33552395cde7c46c161dfd880f23a41
authorEmanuele Altieri <ealtieri@meta.com>
Fri, 17 Feb 2023 22:19:22 +0000 (17 14:19 -0800)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Fri, 17 Feb 2023 22:19:22 +0000 (17 14:19 -0800)
tree0e8eadd2041829c9651f81301af25acafabadfc7
parent743cd2d1e4abdc138901d15c8cba3d6356023350
Use thread-specific clocks for fiber time measurements

Summary: With a thread-specific clock, we measure the CPU time consumed by the thread owning the fiber, which is ideal for any kind of profiling.

Reviewed By: Orvid

Differential Revision: D43289186

fbshipit-source-id: 4307ff18404e6e0ae60ab8e47aa97c62511595d3
third-party/folly/src/folly/fibers/Fiber-inl.h
third-party/folly/src/folly/fibers/Fiber.cpp
third-party/folly/src/folly/fibers/Fiber.h
third-party/folly/src/folly/fibers/FiberManagerInternal-inl.h