ltratt / multitime

Time command execution over multiple executions
http://tratt.net/laurie/src/multitime/
MIT License
115 stars 13 forks source link

Add a command line switch which produces LaTeX output #4

Open snim2 opened 9 years ago

ltratt commented 9 years ago

I'm not sure about this. I think there are a zillion different output formats, and it's difficult to know what to bake in that will stand the test of time.

However, I do think it might be sensible to think about adding an output option which can be more easily parsed by other programs. Then people can write their own multitime2latex (or multitime2html or multitime2latexbooktabs or...) programs with ease. We could perhaps even include examples in the distribution.

snim2 commented 9 years ago

This sounds really neat. What do you propose for a machine readable format? CSV seems like the easiest format that handles columns and rows, but that excludes a multitime2csv extension :)

ltratt commented 9 years ago

Let's say (for argument's sake), the "output" option is "-t" then I think we could make its argument of the form "type:filename" to give us some future-proofness. So one might write "-t csv:/tmp/data".

snim2 commented 9 years ago

DECISION:

multitime -n 100 -c 99 -t csv:/tmp/out.data ./myprog | extras/m2tex.py

multitime -n 100 -c 99 -t csv:/tmp/out.data ./myprog | extras/m2html.py