github.com/goplus/igop@v0.25.0/pkg/runtime/pprof/go121_export.go (about)

     1  // export by github.com/goplus/igop/cmd/qexp
     2  
     3  //go:build go1.21
     4  // +build go1.21
     5  
     6  package pprof
     7  
     8  import (
     9  	q "runtime/pprof"
    10  
    11  	"reflect"
    12  
    13  	"github.com/goplus/igop"
    14  )
    15  
    16  func init() {
    17  	igop.RegisterPackage(&igop.Package{
    18  		Name: "pprof",
    19  		Path: "runtime/pprof",
    20  		Deps: map[string]string{
    21  			"bufio":           "bufio",
    22  			"bytes":           "bytes",
    23  			"compress/gzip":   "gzip",
    24  			"context":         "context",
    25  			"encoding/binary": "binary",
    26  			"errors":          "errors",
    27  			"fmt":             "fmt",
    28  			"internal/abi":    "abi",
    29  			"io":              "io",
    30  			"math":            "math",
    31  			"os":              "os",
    32  			"runtime":         "runtime",
    33  			"sort":            "sort",
    34  			"strconv":         "strconv",
    35  			"strings":         "strings",
    36  			"sync":            "sync",
    37  			"syscall":         "syscall",
    38  			"text/tabwriter":  "tabwriter",
    39  			"time":            "time",
    40  			"unsafe":          "unsafe",
    41  		},
    42  		Interfaces: map[string]reflect.Type{},
    43  		NamedTypes: map[string]reflect.Type{
    44  			"LabelSet": reflect.TypeOf((*q.LabelSet)(nil)).Elem(),
    45  			"Profile":  reflect.TypeOf((*q.Profile)(nil)).Elem(),
    46  		},
    47  		AliasTypes: map[string]reflect.Type{},
    48  		Vars:       map[string]reflect.Value{},
    49  		Funcs: map[string]reflect.Value{
    50  			"Do":                 reflect.ValueOf(q.Do),
    51  			"ForLabels":          reflect.ValueOf(q.ForLabels),
    52  			"Label":              reflect.ValueOf(q.Label),
    53  			"Labels":             reflect.ValueOf(q.Labels),
    54  			"Lookup":             reflect.ValueOf(q.Lookup),
    55  			"NewProfile":         reflect.ValueOf(q.NewProfile),
    56  			"Profiles":           reflect.ValueOf(q.Profiles),
    57  			"SetGoroutineLabels": reflect.ValueOf(q.SetGoroutineLabels),
    58  			"StartCPUProfile":    reflect.ValueOf(q.StartCPUProfile),
    59  			"StopCPUProfile":     reflect.ValueOf(q.StopCPUProfile),
    60  			"WithLabels":         reflect.ValueOf(q.WithLabels),
    61  			"WriteHeapProfile":   reflect.ValueOf(q.WriteHeapProfile),
    62  		},
    63  		TypedConsts:   map[string]igop.TypedConst{},
    64  		UntypedConsts: map[string]igop.UntypedConst{},
    65  	})
    66  }