[PATCH] D133153: [support] Prepare TimeProfiler for cross-thread support

Mark Shields via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 14 06:16:47 PDT 2022


mbs-modular updated this revision to Diff 460060.
mbs-modular added a comment.

[support] Prepare TimeProfiler for cross-thread support

This NFC prepares the TimeProfiler to support the construction
and completion of time profiling 'entries' across threads.

- Add ClockType alias so we can change the clock in one place.
- (trivial) Use c++ usings instead of typedefs
- Rename Entry to TimeTraceProfilerEntry since this type will eventually become public.
- Add an intro comment.
- Add some smoke unit tests.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D133153/new/

https://reviews.llvm.org/D133153

Files:
  llvm/include/llvm/Support/TimeProfiler.h
  llvm/lib/Support/TimeProfiler.cpp
  llvm/unittests/Support/CMakeLists.txt
  llvm/unittests/Support/TimeProfilerTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D133153.460060.patch
Type: text/x-patch
Size: 11252 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220914/97806045/attachment.bin>


More information about the llvm-commits mailing list