1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-24 22:11:15 +02:00

libexpr: Include derivation names in the call stack profile

This makes the profiler much more useful by actually distiguishing
different derivations being evaluated. This does make the implementation
a bit more convoluted, but I think it's worth it.
This commit is contained in:
Sergei Zimmerman 2025-05-25 15:48:35 +00:00
parent a76c76a9d5
commit 9e97ecabb6
No known key found for this signature in database
GPG key ID: A9B0B557CA632325
2 changed files with 68 additions and 10 deletions

View file

@ -89,3 +89,13 @@ expect_trace 'let f2 = (x: x); in f2 1 2' "
expect_trace '1 2' "
«string»:1:1 1
"
# Derivation
expect_trace 'builtins.derivationStrict { name = "somepackage"; }' "
«string»:1:1:primop derivationStrict:somepackage 1
"
# Derivation without name attr
expect_trace 'builtins.derivationStrict { }' "
«string»:1:1:primop derivationStrict 1
"