timeplot
timeplot copied to clipboard
splot does not handle overlapping events
With this data:
2014-06-05 00:00:00.00 >process event1
2014-06-05 00:00:02.00 >process event2
2014-06-05 00:00:03.00 <process event2
2014-06-05 00:00:05.00 <process event1
By running:
splot -w 200 -h 100 -if splot-test.txt -o splot-test.png
Results in:
Notice that the event1 representation does not continue after event2 finishes, as it should.
splot currently does not support overlapping events on a single track. A better way to understand how splot interprets your log would be this:
2014-06-05 00:00:00.00 >process green # start a green bar 2014-06-05 00:00:02.00 >process blue # forget that, start a blue bar instead 2014-06-05 00:00:03.00 <process blue # end the current bar, possibly overriding its color with blue 2014-06-05 00:00:05.00 <process green # end the current bar, possibly overriding its color with green
Can you elaborate on the use case where you want such behavior, and on the semantics you'd like to have in the general case?
The idea is to have it graph a longer process, and inner markings to show specific parts of it. Example:
>process request
(do some initial work with data)
>process image (long running part of the worker)
<process image
>process wait (wait another process to finish)
<process wait
(do some other operations like db access)
<process request
So I want to see the overall request time, along with specific parts within it. Let me know if it makes sense within splot intended use case.
Sorry for the long delay. Yes, I think it makes sense, though I would prefer to not change the existing semantics of > <. And anyway I won't have time to work on it on the foreseeable future (but I'll be happy to review a pull request). The most generic yet easy-to-use thing I can come up with here is this: allow overlapping tracks, specified by track@priority (higher priority is drawn on top): e.g. you could have
process request process@1 image <process@1 image process@1 wait <process@1 wait <process etc.
In the meantime you can use colored text annotations for important events, e.g. you could use:
process request !process red [ !process red ] !process blue [ !process blue ]
then you'll have "image" delimited by a red "[" and a red "]", and "wait" by blue.
On Tue, Jun 10, 2014 at 2:31 PM, Paul Eipper [email protected] wrote:
The idea is to have it graph a longer process, and inner markings to show specific parts of it. Example:
process request (do some initial work with data) process image (long running part of the worker) <process image process wait (wait another process to finish) <process wait (do some other operations like db access) <process request
So I want to see the overall request time, along with specific parts within it. Let me know if it makes sense within splot intended use case.
— Reply to this email directly or view it on GitHub https://github.com/jkff/timeplot/issues/16#issuecomment-45674712.
Eugene Kirpichov Google, distributed computing frameworks http://www.linkedin.com/in/eugenekirpichov http://jkff.info/software/timeplotters - my performance visualization tools