#174: Support CSV output from pidstat.#175
Open
tst-ppenev wants to merge 5 commits intosysstat:masterfrom
Open
#174: Support CSV output from pidstat.#175tst-ppenev wants to merge 5 commits intosysstat:masterfrom
pidstat.#175tst-ppenev wants to merge 5 commits intosysstat:masterfrom
Conversation
* Bug fix: The 'bytes written', 'bytes read' and 'write bytes cancelled' statistics that were output to CSV were calculated improperly, reporting the cumulative number of bytes since process start, rather than the number of bytes for each sample interval. * Slight refactor to output CSV stats for children, or tasks, based on the `-T` command line option.
|
Builds and executes OK |
|
btw it's really easy to transform a pidstat output to csv using https://github.com/shenwei356/csvtk. Execute this script with as first argument the result of
With |
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.
--csv <file_path>option topidstatfor enabling CSV output to a file.P_O_CSVflag that can be added topidflagto indicate CSV should be output.csv_write_headerandcsv_write_statsfunctions topidstat.cfor outputting CSV.efprintfandcsv_efprintf_stocommon.cfor writing a formatted string to a file stream with error reporting, and for writing a CSV string quoted according to RFC 4180 respectively.Fixes #174.