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:
parent
a76c76a9d5
commit
9e97ecabb6
2 changed files with 68 additions and 10 deletions
|
@ -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
|
||||
"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue