github.com/goplus/igop@v0.25.0/pkg/runtime/trace/go115_export.go (about)

     1  // export by github.com/goplus/igop/cmd/qexp
     2  
     3  //+build go1.15,!go1.16
     4  
     5  package trace
     6  
     7  import (
     8  	q "runtime/trace"
     9  
    10  	"reflect"
    11  
    12  	"github.com/goplus/igop"
    13  )
    14  
    15  func init() {
    16  	igop.RegisterPackage(&igop.Package{
    17  		Name: "trace",
    18  		Path: "runtime/trace",
    19  		Deps: map[string]string{
    20  			"context":     "context",
    21  			"fmt":         "fmt",
    22  			"io":          "io",
    23  			"runtime":     "runtime",
    24  			"sync":        "sync",
    25  			"sync/atomic": "atomic",
    26  			"unsafe":      "unsafe",
    27  		},
    28  		Interfaces: map[string]reflect.Type{},
    29  		NamedTypes: map[string]reflect.Type{
    30  			"Region": reflect.TypeOf((*q.Region)(nil)).Elem(),
    31  			"Task":   reflect.TypeOf((*q.Task)(nil)).Elem(),
    32  		},
    33  		AliasTypes: map[string]reflect.Type{},
    34  		Vars:       map[string]reflect.Value{},
    35  		Funcs: map[string]reflect.Value{
    36  			"IsEnabled":   reflect.ValueOf(q.IsEnabled),
    37  			"Log":         reflect.ValueOf(q.Log),
    38  			"Logf":        reflect.ValueOf(q.Logf),
    39  			"NewTask":     reflect.ValueOf(q.NewTask),
    40  			"Start":       reflect.ValueOf(q.Start),
    41  			"StartRegion": reflect.ValueOf(q.StartRegion),
    42  			"Stop":        reflect.ValueOf(q.Stop),
    43  			"WithRegion":  reflect.ValueOf(q.WithRegion),
    44  		},
    45  		TypedConsts:   map[string]igop.TypedConst{},
    46  		UntypedConsts: map[string]igop.UntypedConst{},
    47  	})
    48  }