mirror of
https://github.com/golang/go
synced 2024-11-24 17:10:03 -07:00
a040ebeb98
Update references missed in CL 263142.
For #41190
Change-Id: I778760a6a69bd0440fec0848bdef539c9ccb4ee1
GitHub-Last-Rev: dda42b09ff
GitHub-Pull-Request: golang/go#42874
Reviewed-on: https://go-review.googlesource.com/c/go/+/273946
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Trust: Cherry Zhang <cherryyz@google.com>
26 lines
404 B
Go
26 lines
404 B
Go
// Copyright 2016 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.
|
|
|
|
package main
|
|
|
|
import (
|
|
"io"
|
|
"runtime/pprof"
|
|
)
|
|
|
|
import "C"
|
|
|
|
//export go_start_profile
|
|
func go_start_profile() {
|
|
pprof.StartCPUProfile(io.Discard)
|
|
}
|
|
|
|
//export go_stop_profile
|
|
func go_stop_profile() {
|
|
pprof.StopCPUProfile()
|
|
}
|
|
|
|
func main() {
|
|
}
|