mirror of
https://github.com/golang/go
synced 2024-11-08 07:46:15 -07:00
18 lines
481 B
Go
18 lines
481 B
Go
|
// Copyright 2017 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 runtime
|
||
|
|
||
|
import "unsafe"
|
||
|
|
||
|
//go:linkname runtime_setProfLabel runtime/pprof.runtime_setProfLabel
|
||
|
func runtime_setProfLabel(labels unsafe.Pointer) {
|
||
|
getg().labels = labels
|
||
|
}
|
||
|
|
||
|
//go:linkname runtime_getProfLabel runtime/pprof.runtime_getProfLabel
|
||
|
func runtime_getProfLabel() unsafe.Pointer {
|
||
|
return getg().labels
|
||
|
}
|