[tracing][escher] Reland "use vkTimestamps correctly in TimestampProfiler"

This is a reland of dc4a163b160d6448aedd1a3ac55ed70c50e0fe95

Instead of kCleanupDelay.get() we use kCleanupDelay.to_msecs(), since we
are working in milliseonds, and .get() returns the value in nanoseconds
which led to the bug.

PT-206 #done
SCN-1477 #done

Original change's description:
> [tracing][escher] use vkTimestamps correctly in TimestampProfiler
>
> We no longer assume that the timebase given to us in the VkTimestamp
> is the same as the CPU's. While the previous version worked on available
> hardware, it led to undefined behavior on AEMU which made the GPU events
> on the traces unusable.
>
> Instead, we now use the fact that CleanupEscher() runs every millisecond
> to offset the durations we get back from the GPU by 0.5ms, guaranteeing
> us to be precise to +/- 0.5ms.
>
> Ideally we would use a Vulkan timings extension to get even more precise
> data, but this should be fine until then to get GPU work included in AEMU
> flows. See SCN-1460 for details.
>
> SCN-1460 #done
>
> Test: unit tests, tracing on real hardware and AEMU
>
> Change-Id: I3766ceebca686c5a2f20746afee78f4f7c5a29db

Change-Id: Ibcefa49022ea0944d50dfc70e557019d97af0224
4 files changed
tree: 5a64f548e9b197a8e6a879f7d4435d6cd2c79c70
  1. boards/
  2. build/
  3. buildtools/
  4. bundles/
  5. docs/
  6. examples/
  7. garnet/
  8. peridot/
  9. products/
  10. scripts/
  11. sdk/
  12. src/
  13. third_party/
  14. tools/
  15. zircon/
  16. .clang-format
  17. .clang-tidy
  18. .dir-locals.el
  19. .gitattributes
  20. .gitignore
  21. .gn
  22. AUTHORS
  23. BUILD.gn
  24. CODE_OF_CONDUCT.md
  25. CONTRIBUTING.md
  26. LICENSE
  27. OWNERS
  28. PATENTS
  29. README.md
  30. rustfmt.toml
README.md

Fuchsia

Pink + Purple == Fuchsia (a new operating system)

What is Fuchsia?

Fuchsia is a modular, capability-based operating system. Fuchsia runs on modern 64-bit Intel and ARM processors.

Fuchsia is an open source project with a code of conduct that we expect everyone who interacts with the project to respect.

How can I build and run Fuchsia?

See Getting Started.

Where can I learn more about Fuchsia?

See the documentation.