-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Remove "preamble" from csv output? #794
Comments
Please note that CSV reporter is deprecated, and will be removed sometime in the future |
It is very sad to hear that. CSV is a more native format for any statistical analysis tool. I know it's easy to get csv from JSON, but its just one more extra step. |
True. Sadly CSV isn't quite flexible enough, in the end. Did the JSON solution work? |
We make a distinction between the output and error streams. The context is sent to the error stream while the run data is sent to the output stream. Are you writing to file by redirect in the shell or using the library to output to a file? |
Very interesting. I did look into that before original reply but it looked to me all those streams in the end were dumped into the same output. Looks like that isn't so for console reporter, but is so for file reporter.
you will get only the CSV in |
ah. that might be a bug. perhaps we should ensure output goes to the file and stdout and error goes to stderr? :) |
I write directly to a file using --benchmark_out.
I've just manually removed the extra lines, since it was a one time job. Next time would definitely use JSON though. Thank you for the help. |
Currently, when we want to benchmark output in a csv file, this "preamble" is inserted in the beginning.
This obviously trips up any csv parser and has to be removed each time the benchmark is run. This is annoying and would be great if it was possible to disable that output when using a structured output format.
The text was updated successfully, but these errors were encountered: