[all-commits] [llvm/llvm-project] e61922: Expose TimeTraceProfiler for Async Events (#83778)

Takuto Ikuta via All-commits all-commits at lists.llvm.org
Tue Mar 19 11:03:39 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e61922d327c39805a7303586f4b0accf3398c774
      https://github.com/llvm/llvm-project/commit/e61922d327c39805a7303586f4b0accf3398c774
  Author: Takuto Ikuta <tikuta at google.com>
  Date:   2024-03-19 (Tue, 19 Mar 2024)

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

  Log Message:
  -----------
  Expose TimeTraceProfiler for Async Events (#83778)

To avoid issue like https://github.com/llvm/llvm-project/issues/56554
and https://github.com/llvm/llvm-project/issues/83236 due to no
guarantees for nested relationships between file level span and syntax
tree level span, I'd like to have a `timeTraceAsyncProfilerBegin`
specific to trace handling only `Source` spans around

https://github.com/llvm/llvm-project/blob/8715f256911786520bb727ce067098d7082ac45c/clang/lib/Sema/Sema.cpp#L153-L170.

This is a preparation PR to do that in [following
PR](https://github.com/llvm/llvm-project/pull/83961).



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list