Optional debugging output for AbstractIOHandlerImpl::flush()#1495
Merged
ax3l merged 2 commits intoopenPMD:devfrom Aug 10, 2023
Merged
Optional debugging output for AbstractIOHandlerImpl::flush()#1495ax3l merged 2 commits intoopenPMD:devfrom
ax3l merged 2 commits intoopenPMD:devfrom
Conversation
35e8534 to
338e922
Compare
franzpoeschel
commented
Aug 7, 2023
ax3l
approved these changes
Aug 9, 2023
Member
ax3l
left a comment
There was a problem hiding this comment.
This is great!
Since it is not performance critical, one could also consider controlling this with an environment option (verbosity).
That way, no recompile needs to be done.
338e922 to
4e1535b
Compare
Contributor
Author
I had not added that because of our plans to introduce proper logging at some point, but adding an environment variable is probably a good idea. This way, we can easily ask users to give us more details in bug reports without recompiling anything. |
eschnett
added a commit
to eschnett/openPMD-api
that referenced
this pull request
Sep 5, 2023
* dev: Fix CMake: HDF5 Libs are PUBLIC (openPMD#1520) Fix `chmod` in `download_samples.sh` (openPMD#1518) CI: Old CTest (openPMD#1519) Python: Fix ODR Violation (openPMD#1521) replace extent in weighting and displacement (openPMD#1510) CMake: Warn and Continue on Empty HDF5_VERSION (openPMD#1512) Replace openPMD_Datatypes global with function (openPMD#1509) Streaming examples: Set WAN as default transport (openPMD#1511) TOML Backend (openPMD#1436) make it possible to manually set chunks when loading dask arrays (openPMD#1477) [pre-commit.ci] pre-commit autoupdate (openPMD#1504) Optional debugging output for AbstractIOHandlerImpl::flush() (openPMD#1495) Python: 3.8+ (openPMD#1502) # Conflicts: # .github/workflows/linux.yml # src/binding/python/Series.cpp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I've used something like this probably a hundred times already, this PR puts debugging output (disabled by default) for the backend IO tasks into
AbstractIOHandlerImpl::flush().To be enabled by manually putting a
#define OPENPMD_DEBUG 1in the corresponding.cppfile.This can be seen as a first step toward proper debug logging that users can enable e.g. via an environment variable.
Sample output: