summaryrefslogtreecommitdiff
path: root/lgc
diff options
context:
space:
mode:
Diffstat (limited to 'lgc')
-rw-r--r--lgc/lgc.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/lgc/lgc.go b/lgc/lgc.go
index 13f2c06..5b35fd1 100644
--- a/lgc/lgc.go
+++ b/lgc/lgc.go
@@ -38,6 +38,7 @@ type LoadGeneratingConnection interface {
Client() *http.Client
IsValid() bool
ClientId() uint64
+ Stats() *stats.TraceStats
}
// TODO: All 64-bit fields that are accessed atomically must
@@ -284,6 +285,10 @@ func (lbd *LoadGeneratingConnectionDownload) IsValid() bool {
return lbd.valid
}
+func (lbd *LoadGeneratingConnectionDownload) Stats() *stats.TraceStats {
+ return &lbd.stats
+}
+
func (lbd *LoadGeneratingConnectionDownload) doDownload(ctx context.Context) {
var request *http.Request = nil
var get *http.Response = nil
@@ -420,3 +425,7 @@ func (lgu *LoadGeneratingConnectionUpload) Start(
go lgu.doUpload(ctx)
return true
}
+
+func (lbd *LoadGeneratingConnectionUpload) Stats() *stats.TraceStats {
+ return nil
+}