Skip to content

Move profiling metadata collecting to function#8198

Merged
kubouch merged 3 commits intonushell:mainfrom
kubouch:fix-stack-overflow
Feb 24, 2023
Merged

Move profiling metadata collecting to function#8198
kubouch merged 3 commits intonushell:mainfrom
kubouch:fix-stack-overflow

Conversation

@kubouch
Copy link
Copy Markdown
Contributor

@kubouch kubouch commented Feb 24, 2023

Description

Moves profiling data collection to its own function to avoid potential stack overflow.

User-Facing Changes

Hopefully none.

Tests + Formatting

Don't forget to add tests that cover your changes.

Make sure you've run and fixed any issues with these commands:

  • cargo fmt --all -- --check to check standard code formatting (cargo fmt --all applies these changes)
  • cargo clippy --workspace -- -D warnings -D clippy::unwrap_used -A clippy::needless_collect to check that you're using the standard code style
  • cargo test --workspace to check that all tests pass

After Submitting

If your PR had any user-facing changes, update the documentation after the PR is merged, if necessary. This will help us keep the docs up to date.

@codecov
Copy link
Copy Markdown

codecov bot commented Feb 24, 2023

Codecov Report

Merging #8198 (59288cb) into main (42f0b55) will decrease coverage by 0.02%.
The diff coverage is 0.00%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #8198      +/-   ##
==========================================
- Coverage   54.77%   54.75%   -0.02%     
==========================================
  Files         613      613              
  Lines       98494    98525      +31     
==========================================
- Hits        53954    53952       -2     
- Misses      44540    44573      +33     
Impacted Files Coverage Δ
crates/nu-engine/src/eval.rs 51.50% <0.00%> (-1.46%) ⬇️
crates/nu-protocol/src/ty.rs 72.14% <0.00%> (-0.72%) ⬇️
crates/nu-color-config/src/style_computer.rs 80.76% <0.00%> (-0.55%) ⬇️

@kubouch kubouch merged commit e93a8b1 into nushell:main Feb 24, 2023
@kubouch kubouch deleted the fix-stack-overflow branch February 24, 2023 22:29
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.

1 participant