[all-commits] [llvm/llvm-project] 1b46db: [ctxprof] ProfileWriter abstraction (#129590)

Mircea Trofin via All-commits all-commits at lists.llvm.org
Tue Mar 4 12:41:38 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1b46db77765bb0a25d784924a9785d9686cf67e0
      https://github.com/llvm/llvm-project/commit/1b46db77765bb0a25d784924a9785d9686cf67e0
  Author: Mircea Trofin <mtrofin at google.com>
  Date:   2025-03-04 (Tue, 04 Mar 2025)

  Changed paths:
    M compiler-rt/lib/ctx_profile/CtxInstrContextNode.h
    M compiler-rt/lib/ctx_profile/CtxInstrProfiling.cpp
    M compiler-rt/lib/ctx_profile/CtxInstrProfiling.h
    M compiler-rt/lib/ctx_profile/tests/CtxInstrProfilingTest.cpp
    M compiler-rt/test/ctx_profile/TestCases/generate-context.cpp
    M llvm/include/llvm/ProfileData/CtxInstrContextNode.h

  Log Message:
  -----------
  [ctxprof] ProfileWriter abstraction (#129590)

Introduce a `ProfileWriter` abstraction to replace the callback passed to `__llvm_ctx_profile_fetch`. Subsequent changes will add support for flat profile collection (as in, collection of non-contextual profile for those functions not under a contextual root), which require also a change in the profile format. The abstraction makes it easy to add "write flat" - related capabilities without constantly complicating the signature of `__llvm_ctx_profile_fetch`.



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