[all-commits] [llvm/llvm-project] 7061a3: [support] Prepare TimeProfiler for cross-thread su...

Mark Shields via All-commits all-commits at lists.llvm.org
Fri Sep 16 09:21:32 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7061a3f3f89df1d8ae0afc03550da2c4f0dfbe8b
      https://github.com/llvm/llvm-project/commit/7061a3f3f89df1d8ae0afc03550da2c4f0dfbe8b
  Author: mbs <mbs at modular.com>
  Date:   2022-09-16 (Fri, 16 Sep 2022)

  Changed paths:
    M llvm/include/llvm/Support/TimeProfiler.h
    M llvm/lib/Support/TimeProfiler.cpp
    M llvm/unittests/Support/CMakeLists.txt
    A llvm/unittests/Support/TimeProfilerTest.cpp

  Log Message:
  -----------
  [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.

Reviewed By: russell.gallop, rriddle, lattner, jloser

Differential Revision: https://reviews.llvm.org/D133153




More information about the All-commits mailing list