-
Notifications
You must be signed in to change notification settings - Fork 1.5k
refs #4452 / refs #11705 - improved --showtime= behavior and testing
#4876
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
Conversation
cli/cmdlineparser.cpp
Outdated
| " --rule-file=<file> Use given rule file. For more information, see:\n" | ||
| " http://sourceforge.net/projects/cppcheck/files/Articles/\n" | ||
| #endif | ||
| // TODO: document --showtime |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will add after it is well defined after all my other comments/TODOs have been resolved.
| check(2, 3, 3, oss.str()); | ||
| } | ||
|
|
||
| // TODO: check the output |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs a thread-safe REDIRECT - will take some time to address this.
|
|
||
| // TODO: provide data which actually shows values above 0 | ||
|
|
||
| // TODO: should this be logged only once like summary? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think top5 makes sense in the summary and file context.
So I suggested we add top5_file and top5_summary and deprecate top5. We could keep top5 but it currently behaves like top5_file so that might be confusing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
|
@danmar I need some feedback on my comments to finish this up and move it out of draft. Thanks. |
| } | ||
| } | ||
|
|
||
| // TODO: this does not include any file context when SHOWTIME_FILE thus rendering it useless - should we include the logging with the progress logging? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This would also be without context when using -q so tacking it with the progress won't help there and we need to add some kind of header.
840b39c to
9970e3a
Compare
|
Requires #4963 to be merged first. |
|
The TSAN error with The locking for |
da6dc5c to
6215566
Compare
|
Everything should be fixed except for the |
795c823 to
223a138
Compare
--showtime= behavior and testing--showtime= behavior and testing
…asserts for currently broken tests
… `top5_summary` / temporarily disabled collecting of timing information in daca
…d failed tests with TODO
…on and added TODO
…ication-result` clang-tidy warning
|
Some notes for the initial comment which should not be part of the commit message and might even be a bit outdated. Notes:
|
|
This is finally ready for review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it looks good to me.. just a small spelling typo
| } | ||
| } | ||
|
|
||
| // TODO: wee need to get the timing information from the subprocess |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
spelling: wee => we
This is a step onto leveraging the
ThreadExecutorimplementation forProcessExecutorwhich is a follow-up to #4870. We need to have the proper test coverage and the existing implementations working as expected before we move to the shared code.Fixes:
--showtime=tests for all executor implementations--showtime=summaryonce at the end--showtime=by multiple threads to be written at the same time - essentially breaking the outputtop5in favor oftop5_fileProcessExecutor