Context: I plan on using this change primarily downstream in the apple fork of llvm to track swift module loading time.
The idea is that TypeSystems from modules can self-report statistics when performing the statistics dump of a module.
Differential D137191
[lldb] Add information on type systems to statistics dump command bulbazord on Nov 1 2022, 1:41 PM. Authored by
Details Context: I plan on using this change primarily downstream in the apple fork of llvm to track swift module loading time. The idea is that TypeSystems from modules can self-report statistics when performing the statistics dump of a module.
Diff Detail Event TimelineComment Actions I have a pull request to apple's fork to show how this is used for swift: https://github.com/apple/llvm-project/pull/5540 I primarily wanted this portion to be upstream so that the patch is easier to maintain downstream, but it could be useful for clang-produced TypeSystems as well.
|
Maybe llvm::function_ref?
https://llvm.org/doxygen/classllvm_1_1function__ref_3_01Ret_07Params_8_8_8_08_4.html