-
Notifications
You must be signed in to change notification settings - Fork 33
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
Add option for verbose output #41
Comments
RPGillespie6
added a commit
that referenced
this issue
Mar 31, 2020
Description: - Fix #41 - Refactor log traces to use python logging - Add `--verbose` option which sets logging level to debug - Add some debug level traces to print internal processing
@astratsx FYI - I've created a new branch to add a
I still need to add a few more debug traces and tests, but I will most likely open a PR and merge within a few days. After that I'm going to tag and release v1.5 of fastcov since there have been quite a few new features added since v1.4 |
This is wonderful news! I know that you’ve spent a great deal of time implementing these new features. I certainly appreciate it and I’m sure that others will too. I look forward to seeing the new release when you make it available. Thank you so much!
From: Bryan Gillespie <[email protected]>
Sent: Monday, March 30, 2020 11:34 PM
To: RPGillespie6/fastcov <[email protected]>
Cc: Mention <[email protected]>
Subject: Re: [RPGillespie6/fastcov] Add option for verbose output (#41)
EXTERNAL
@astratsx<https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fastratsx&data=02%7C01%7CBob.Huemmer%40sas.com%7Ce69a1e62e8a847df913208d7d5244ef3%7Cb1c14d5c362545b3a4309552373a0c2f%7C0%7C0%7C637212224230206560&sdata=MfE0RinjUSdRZTltdfgBNTu6xgKVRJ5VEuB0KMs1%2BUc%3D&reserved=0> FYI - I've created a new branch to add a --verbose flag to fastcov. Here is sample output when run against the fastcov example project:
+ /mnt/workspace/example/fastcov.py -t ExampleTest --gcov gcov-9 --branch-coverage --exclude /usr/include cmake_project/test/ --verbose --lcov -o example.info
[0.004s] [info]: Found 10 coverage files (gcda)
[0.001s] [info]: Spawned 2 gcov threads, each processing at most 5 coverage files
[0.002s] [debug]: Skipped processing '/mnt/workspace/test/functional/cmake_project/test/latin1_test.cpp' due to option '--exclude cmake_project/test/'
[0.000s] [debug]: Skipped processing '/mnt/workspace/test/functional/cmake_project/test/test1_2.cpp' due to option '--exclude cmake_project/test/'
[0.002s] [debug]: Skipped processing '/usr/include/c++/9/bits/stl_iterator_base_funcs.h' due to option '--exclude /usr/include'
[0.000s] [debug]: Skipped processing '/usr/include/c++/9/bits/stl_iterator_base_types.h' due to option '--exclude /usr/include'
[0.000s] [debug]: Skipped processing '/usr/include/c++/9/ext/type_traits.h' due to option '--exclude /usr/include'
[0.000s] [debug]: Skipped processing '/usr/include/c++/9/bits/basic_string.tcc' due to option '--exclude /usr/include'
[0.000s] [debug]: Skipped processing '/usr/include/c++/9/bits/basic_string.h' due to option '--exclude /usr/include'
[0.000s] [debug]: Skipped processing '/usr/include/c++/9/ext/new_allocator.h' due to option '--exclude /usr/include'
[0.000s] [debug]: Skipped processing '/usr/include/c++/9/initializer_list' due to option '--exclude /usr/include'
[0.000s] [debug]: Skipped processing '/mnt/workspace/test/functional/cmake_project/test/branch_test.cpp' due to option '--exclude cmake_project/test/'
[0.000s] [debug]: Skipped processing '/usr/include/c++/9/bits/char_traits.h' due to option '--exclude /usr/include'
[0.001s] [debug]: Skipped processing '/usr/include/c++/9/bits/move.h' due to option '--exclude /usr/include'
[0.000s] [debug]: Skipped processing '/usr/include/c++/9/bits/stl_algobase.h' due to option '--exclude /usr/include'
[0.000s] [debug]: Skipped processing '/usr/include/c++/9/bits/stl_iterator_base_funcs.h' due to option '--exclude /usr/include'
[0.000s] [debug]: Skipped processing '/usr/include/c++/9/bits/stl_iterator_base_types.h' due to option '--exclude /usr/include'
[0.000s] [debug]: Skipped processing '/usr/include/c++/9/bits/stl_construct.h' due to option '--exclude /usr/include'
[0.000s] [debug]: Skipped processing '/usr/include/c++/9/ext/new_allocator.h' due to option '--exclude /usr/include'
[0.000s] [debug]: Skipped processing '/usr/include/c++/9/ext/type_traits.h' due to option '--exclude /usr/include'
[0.000s] [debug]: Skipped processing '/usr/include/c++/9/bits/stl_uninitialized.h' due to option '--exclude /usr/include'
[0.000s] [debug]: Skipped processing '/usr/include/c++/9/bits/alloc_traits.h' due to option '--exclude /usr/include'
[0.000s] [debug]: Skipped processing '/usr/include/c++/9/bits/cpp_type_traits.h' due to option '--exclude /usr/include'
[0.000s] [debug]: Skipped processing '/usr/include/c++/9/bits/basic_string.tcc' due to option '--exclude /usr/include'
[0.000s] [debug]: Skipped processing '/usr/include/c++/9/bits/stl_vector.h' due to option '--exclude /usr/include'
[0.000s] [debug]: Skipped processing '/usr/include/c++/9/bits/allocator.h' due to option '--exclude /usr/include'
[0.000s] [debug]: Skipped processing '/usr/include/c++/9/bits/basic_string.h' due to option '--exclude /usr/include'
[0.000s] [debug]: Skipped processing '/usr/include/c++/9/initializer_list' due to option '--exclude /usr/include'
[0.000s] [debug]: Skipped processing '/usr/include/c++/9/bits/vector.tcc' due to option '--exclude /usr/include'
[0.000s] [debug]: Skipped processing '/usr/include/c++/9/ext/alloc_traits.h' due to option '--exclude /usr/include'
[0.000s] [debug]: Skipped processing '/usr/include/c++/9/new' due to option '--exclude /usr/include'
[0.000s] [debug]: Skipped processing '/usr/include/c++/9/bits/char_traits.h' due to option '--exclude /usr/include'
[0.000s] [debug]: Skipped processing '/mnt/workspace/test/functional/cmake_project/test/test1.cpp' due to option '--exclude cmake_project/test/'
[0.000s] [info]: Processed 6 .gcov files (37 total, 31 skipped)
[0.000s] [info]: Aggregated raw gcov JSON into fastcov JSON report
[0.000s] [info]: Spawned 1 threads each scanning at most 5 source files
[0.000s] [warning]: Could not decode '/mnt/workspace/test/functional/cmake_project/src/latin1_enc.cpp' with utf-8 or fallback encodings (); ignoring errors
[0.000s] [info]: Scanned 4 source files for exclusion markers
[0.000s] [info]: Created lcov info file 'example.info'
I still need to add a few more debug traces and tests, but I will most likely open a PR and merge within a few days. After that I'm going to tag and release v1.5 of fastcov since there have been quite a few new features added since v1.4
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FRPGillespie6%2Ffastcov%2Fissues%2F41%23issuecomment-606378686&data=02%7C01%7CBob.Huemmer%40sas.com%7Ce69a1e62e8a847df913208d7d5244ef3%7Cb1c14d5c362545b3a4309552373a0c2f%7C0%7C0%7C637212224230206560&sdata=Ni7MtcwbUJmz%2BgiCU9mpzveFT1T%2BavHOI043PfE%2F8aU%3D&reserved=0>, or unsubscribe<https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAJ2Z67UTDPO7E3UUBVKE4K3RKFQBLANCNFSM4LWG4FMQ&data=02%7C01%7CBob.Huemmer%40sas.com%7Ce69a1e62e8a847df913208d7d5244ef3%7Cb1c14d5c362545b3a4309552373a0c2f%7C0%7C0%7C637212224230216548&sdata=WGT14D2wMiNbPsudgxelRoa4Q7RL6C0%2B29xRv35imjA%3D&reserved=0>.
|
RPGillespie6
added a commit
that referenced
this issue
Apr 1, 2020
Description: - Fix #41 - Refactor log traces to use python logging - Add `--verbose` option which sets logging level to debug - Add some debug level traces to print internal processing
Merged
RPGillespie6
added a commit
that referenced
this issue
Apr 1, 2020
Description: - Fix #41 - Refactor log traces to use python logging - Add `--verbose` option which sets logging level to debug - Add some debug level traces to print internal processing
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Fastcov hides the details of some of its internal processing to prevent the shell from being spammed with noisy traces. However, this may be desirable for debugging and understanding what fastcov is filtering and why.
Add
--verbose
option that prints extra information containing potentially useful internal processing details.The text was updated successfully, but these errors were encountered: