github.com/twelsh-aw/go/src@v0.0.0-20230516233729-a56fe86a7c81/log/slog/internal/ignorepc.go (about)

     1  // Copyright 2023 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package internal
     6  
     7  // If IgnorePC is true, do not invoke runtime.Callers to get the pc.
     8  // This is solely for benchmarking the slowdown from runtime.Callers.
     9  var IgnorePC = false