aboutsummaryrefslogtreecommitdiffstats
path: root/metrics/runtime_cgo.go
diff options
context:
space:
mode:
Diffstat (limited to 'metrics/runtime_cgo.go')
-rw-r--r--metrics/runtime_cgo.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/metrics/runtime_cgo.go b/metrics/runtime_cgo.go
new file mode 100644
index 000000000..e3391f4e8
--- /dev/null
+++ b/metrics/runtime_cgo.go
@@ -0,0 +1,10 @@
+// +build cgo
+// +build !appengine
+
+package metrics
+
+import "runtime"
+
+func numCgoCall() int64 {
+ return runtime.NumCgoCall()
+}