Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

function-trace: always show the trace #3097

Merged
merged 1 commit into from Sep 18, 2019
Merged

Conversation

zimbatm
Copy link
Member

@zimbatm zimbatm commented Sep 18, 2019

If the user invokes nix with --trace-function-calls it means that they
want to see the trace. This removes the need to also add -vvvv to the command.


FunctionCallTrace(const Pos & pos) : pos(pos) {
FunctionCallTrace(const string type, const Pos & pos) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be const string & type.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops, that was part of an ongoing experiment where I try to qualify the traces a bit better when the pos is undefined (like all the primop calls). Removed it from this PR for now.

If the user invokes nix with --trace-function-calls it means that they
want to see the trace.
@edolstra edolstra merged commit 7f9a003 into NixOS:master Sep 18, 2019
@zimbatm zimbatm deleted the show-traces branch September 18, 2019 22:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants