Port profiler changes from CppNix #881
Labels
No labels
Affects/CppNix
Affects/Nightly
Affects/Only nightly
Affects/Stable
Area/build-packaging
Area/cli
Area/evaluator
Area/fetching
Area/flakes
Area/language
Area/lix ci
Area/nix-eval-jobs
Area/profiles
Area/protocol
Area/releng
Area/remote-builds
Area/repl
Area/repl/debugger
Area/store
bug
Context
contributors
Context
drive-by
Context
maintainers
Context
RFD
crash 💥
Cross Compilation
devx
docs
Downstream Dependents
E/easy
E/hard
E/help wanted
E/reproducible
E/requires rearchitecture
imported
Language/Bash
Language/C++
Language/NixLang
Language/Python
Language/Rust
Needs Langver
OS/Linux
OS/macOS
performance
regression
release-blocker
stability
Status
blocked
Status
invalid
Status
postponed
Status
wontfix
testing
testing/flakey
Topic/Large Scale Installations
ux
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lix-project/lix#881
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Recently CppNix gained a very simple stack trace sampling profiler, which is something which is important to not guessing in the dark while trying to understand eval performance and which we would independently like to have. I am not certain if this is an ideal architecture for this as I discovered in my experiments with tracing profiling that uses a string interner that full tracing profiling had basically no perf effects. Regardless, the patch is simple and seemingly self contained, so we probably could pick it, assuming no surprises exist in its implementation.
Relevant PRs:
Required steps:
we're definitely not porting these as is. we have an ast visitor infrastructure that can inject profiling nodes only when profiling is requested instead of always having it on hot paths (even if it's cheap enough to not notice most of the time)