Skip to content
This repository was archived by the owner on Mar 25, 2025. It is now read-only.

Detailed blame.#1320

Merged
1uc merged 1 commit into
masterfrom
1uc/detailed-blame
Jun 13, 2024
Merged

Detailed blame.#1320
1uc merged 1 commit into
masterfrom
1uc/detailed-blame

Conversation

@1uc

@1uc 1uc commented Jun 12, 2024

Copy link
Copy Markdown
Collaborator

No description provided.

bbpadministrator pushed a commit to BlueBrain/nmodl-references that referenced this pull request Jun 12, 2024
@codecov

codecov Bot commented Jun 12, 2024

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 76.19048% with 5 lines in your changes missing coverage. Please review.

Project coverage is 85.41%. Comparing base (fd2cd16) to head (60bacca).

Files Patch % Lines
src/utils/blame.cpp 50.00% 3 Missing ⚠️
src/main.cpp 66.66% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1320      +/-   ##
==========================================
- Coverage   85.42%   85.41%   -0.02%     
==========================================
  Files         178      178              
  Lines       13394    13400       +6     
==========================================
+ Hits        11442    11445       +3     
- Misses       1952     1955       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@bbpbuildbot

Copy link
Copy Markdown
Collaborator

Logfiles from GitLab pipeline #216583 (:white_check_mark:) have been uploaded here!

Status and direct links:

@1uc 1uc marked this pull request as ready for review June 12, 2024 14:00
@1uc 1uc requested a review from JCGoran June 12, 2024 14:00
@JCGoran

JCGoran commented Jun 12, 2024

Copy link
Copy Markdown
Contributor

I seem to be getting additional backtrace output sometimes (tested on BB5 with file from #1279 and command nmodl --neuron [modfile] blame --line 208 --detailed):

28:    Source: "", line 0, in
27:    Source: "", line 0, in _start
26:    Source: "", line 0, in
25:    Source: "/gpfs/bbp.cscs.ch/data/project/proj16/jelic/nmodl/src/main.cpp", line 589, in main

Can the first 3 in the above be removed?

@1uc

1uc commented Jun 12, 2024

Copy link
Copy Markdown
Collaborator Author

We could, though the more magic we add the more likely it is to break on us; and it's just a debugging assistant.

Maybe I'm too complacent, but it feels like there's often junk at the top of a backtrace. In fact after writing the whole reply I noticed, that I have 4 lines of spam. They're definitely part of a backtrace I guess it helps identify the beginning of a backtrace :)

If we want to make it more compact there's better ways: The backtraces for each of the commands that lead to a string being printed to the requested line, often have a lot in common: a) they share most of the outer traces; b) fmt_line is gonna create 3 backtraces, one for printing the indent, one of interest, and another for printing the "\n" (annoyingly the difference gets chopped off, because it's too hard to find the interesting line otherwise).

@JCGoran JCGoran left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@JCGoran JCGoran linked an issue Jun 13, 2024 that may be closed by this pull request
@1uc 1uc merged commit 64cf627 into master Jun 13, 2024
@1uc 1uc deleted the 1uc/detailed-blame branch June 13, 2024 06:41
JCGoran pushed a commit to neuronsimulator/nrn that referenced this pull request Mar 12, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Expand blame stack trace

3 participants