tags:

views:

26

answers:

1

I have currently the following setup:

  • An object graph of all requests read from an application server log file.
  • Each line is represented as a RequestPart, with the following information: start time, stop time, tier, application part that is done.

I would like to draw / to graph something that shows the following:

  • Show different colors for the tier the request part is in.
  • Show for requests that are done in parallel, that they overlap.
  • The relation of start and stop should be shown (not exactly, but approximately)

My first idea was to fill the rows of an excel sheet with the requests, and color each cell according to the time, the tier, ... But then I found out that excel does only allow 2^8 cells (with Excel < 2010), so that is not an option.

I'm a Ruby boy, so I checked RMagick and Gruff, but I don't like that at the end, I only have an image, so no further analysis is possible. Does anyone has an idea what to do (well, last resort: install Excel 2010, but my company will not like that).

+1  A: 

Check out open source Timeline

Added

Tips for using it:

  • send your data using JSON, faster parsing on the client compared with XML.
  • suggest that your clients use FF, Safari or (fastest), Google Chrome
  • Even faster parsing of dates: send Javascript datetime literals for parsing on client. Of course, at that point you're not sending kosher JSON, but it is the fastest way to send the data.
Larry K
Just tried it out, and I am deeply impressed. Is there some library that keeps the complexity low?
mliebelt
Not sure what you mean...it uses some functions from JQuery, but was written a number of years ago and is mostly self-contained. The code is very well written and pretty clear. I was the active maintainer for a year but unfortunately have not had any time to devote to it for the last year. The author is a very smart fellow with a MIT PhD. Also, current version is a re-write (by the original author) so it has benefited from re-factoring.
Larry K
I have invested some hours, found my way through and am now able to visualize the loadrunner requests going on in parallel in a nice visual way. I have checked in advance two gems, but they did not help in any way. If someone is interested, drop me a note :-)
mliebelt