Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(115)

Unified Diff: driver/driver_go12.go

Issue 60070044: code review 60070044: bench: move benchmarks from other repo (Closed)
Patch Set: diff -r f1a14a701f91 https://code.google.com/p/go.benchmarks Created 11 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « driver/driver_go10.go ('k') | driver/driver_linux.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: driver/driver_go12.go
===================================================================
new file mode 100644
--- /dev/null
+++ b/driver/driver_go12.go
@@ -0,0 +1,17 @@
+// Copyright 2013 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+// +build go1.2
+
+package driver
+
+import (
+ "runtime"
+)
+
+// New mem stats added in Go1.2
+func collectGo12MemStats(res *Result, mstats0, mstats1 *runtime.MemStats) {
+ res.Metrics["sys-gc"] = mstats1.GCSys
+ res.Metrics["sys-other"] = mstats1.OtherSys + mstats1.MSpanSys + mstats1.MCacheSys + mstats1.BuckHashSys
+}
« no previous file with comments | « driver/driver_go10.go ('k') | driver/driver_linux.go » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b