commit | 1dffca75aeded8e38a3e5999830f6b94d57ce971 | [log] [tgz] |
---|---|---|
author | Quentin Smith <quentin@golang.org> | Thu Mar 30 20:32:53 2017 -0400 |
committer | Quentin Smith <quentin@golang.org> | Fri Mar 31 15:54:18 2017 +0000 |
tree | 49e5b736fdcbbb1add895fb9d64ed2adc6c8f78f | |
parent | c5bed37ea7e287e2cbe0dfb8842e9b2b391e1447 [diff] |
storage/db: ListUploads shouldn't return empty uploads The Uploads table gets an entry when a user or the server aborts an upload in mid-upload. The Records table is cleaned up by the transaction, but the Uploads entry is left behind. The optimized query that is used for the perf.golang.org homepage did not properly exclude these uploads that have no records. Change-Id: I8322af5946c233e5cb4b15bf57d9487bcd1e6423 Reviewed-on: https://go-review.googlesource.com/39051 Run-TryBot: Quentin Smith <quentin@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Russ Cox <rsc@golang.org>
This subrepository holds the source for various packages and tools related to performance measurement, storage, and analysis.
cmd/benchstat contains a command-line tool that computes and compares statistics about benchmarks.
cmd/benchsave contains a command-line tool for publishing benchmark results.
storage contains the https://perfdata.golang.org/ benchmark result storage system.
analysis contains the https://perf.golang.org/ benchmark result analysis system.
Both storage and analysis can be run locally; the following commands will run the complete stack on your machine with an in-memory datastore.
go get -u golang.org/x/perf/storage/localperfdata go get -u golang.org/x/perf/analysis/localperf localperfdata -addr=:8081 -view_url_base=http://localhost:8080/search?q=upload: & localperf -addr=:8080 -storage=localhost:8081
The storage system is designed to have a standardized API, and we encourage additional analysis tools to be written against the API. A client can be found in the storage package.
Contributions to Go are appreciated. See http://golang.org/doc/contribute.html.