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

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