1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-05 20:41:47 +02:00

libexpr: Add EvalProfiler

This patch adds an EvalProfiler and MultiEvalProfiler that can be used
to insert hooks into the evaluation for the purposes of function tracing
(what function-trace currently does) or for flamegraph/tracy profilers.

See the following commits for how this is supposed to be integrated into
the evaluator and performance considerations.
This commit is contained in:
Sergei Zimmerman 2025-05-16 21:53:06 +00:00
parent e5e5c819dd
commit 6b4a86a9e3
No known key found for this signature in database
GPG key ID: A9B0B557CA632325
5 changed files with 164 additions and 0 deletions

View file

@ -140,6 +140,7 @@ sources = files(
'eval-cache.cc',
'eval-error.cc',
'eval-gc.cc',
'eval-profiler.cc',
'eval-settings.cc',
'eval.cc',
'function-trace.cc',