// 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 | |
} |