ReporterPlot: Interactive plot with HTML5

* Uses Dygraphs JS lib to plot
* Embeds dygraphs in binary to remove run-time dependencies
* Removes dependency on Plotinum
This commit is contained in:
Tomás Senart
2013-09-23 01:37:10 +02:00
parent f0579e67e4
commit 0e268023aa
3 changed files with 3484 additions and 40 deletions

View File

@@ -9,7 +9,7 @@ import (
func reportCmd(args []string) command {
fs := flag.NewFlagSet("report", flag.ExitOnError)
reporter := fs.String("reporter", "text", "Reporter [text, json, plot:timings]")
reporter := fs.String("reporter", "text", "Reporter [text, json, plot]")
input := fs.String("input", "stdin", "Input files (comma separated)")
output := fs.String("output", "stdout", "Output file")
fs.Parse(args)
@@ -28,8 +28,8 @@ func report(reporter, input, output string) error {
rep = vegeta.ReportText
case "json":
rep = vegeta.ReportJSON
case "plot:timings":
rep = vegeta.ReportTimingsPlot
case "plot":
rep = vegeta.ReportPlot
default:
log.Println("Reporter provided is not supported. Using text")
rep = vegeta.ReportText