/
runtime.go
88 lines (85 loc) · 4.06 KB
/
runtime.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
package ninjascript
import (
runtime "runtime"
)
func init() {
if _, ok := Api["runtime"]; !ok {
Api["runtime"] = map[string]interface{}{}
}
Api["runtime"]["MemProfileRate"] = runtime.MemProfileRate
Api["runtime"]["BlockProfile"] = runtime.BlockProfile
Api["runtime"]["Breakpoint"] = runtime.Breakpoint
Api["runtime"]["CPUProfile"] = runtime.CPUProfile
Api["runtime"]["Caller"] = runtime.Caller
Api["runtime"]["Callers"] = runtime.Callers
Api["runtime"]["GC"] = runtime.GC
Api["runtime"]["GOMAXPROCS"] = runtime.GOMAXPROCS
Api["runtime"]["GOROOT"] = runtime.GOROOT
Api["runtime"]["Goexit"] = runtime.Goexit
Api["runtime"]["GoroutineProfile"] = runtime.GoroutineProfile
Api["runtime"]["Gosched"] = runtime.Gosched
Api["runtime"]["KeepAlive"] = runtime.KeepAlive
// Api["runtime"]["File"] = runtime.File{}
Api["runtime"]["LockOSThread"] = runtime.LockOSThread
Api["runtime"]["MemProfile"] = runtime.MemProfile
Api["runtime"]["MutexProfile"] = runtime.MutexProfile
Api["runtime"]["NumCPU"] = runtime.NumCPU
Api["runtime"]["NumCgoCall"] = runtime.NumCgoCall
Api["runtime"]["NumGoroutine"] = runtime.NumGoroutine
Api["runtime"]["ReadMemStats"] = runtime.ReadMemStats
Api["runtime"]["ReadTrace"] = runtime.ReadTrace
Api["runtime"]["SetBlockProfileRate"] = runtime.SetBlockProfileRate
Api["runtime"]["SetCPUProfileRate"] = runtime.SetCPUProfileRate
Api["runtime"]["SetCgoTraceback"] = runtime.SetCgoTraceback
Api["runtime"]["SetFinalizer"] = runtime.SetFinalizer
Api["runtime"]["SetMutexProfileFraction"] = runtime.SetMutexProfileFraction
Api["runtime"]["Stack"] = runtime.Stack
Api["runtime"]["StartTrace"] = runtime.StartTrace
Api["runtime"]["StopTrace"] = runtime.StopTrace
Api["runtime"]["ThreadCreateProfile"] = runtime.ThreadCreateProfile
Api["runtime"]["UnlockOSThread"] = runtime.UnlockOSThread
Api["runtime"]["Version"] = runtime.Version
Api["runtime"]["BlockProfileRecord"] = runtime.BlockProfileRecord{}
Api["runtime"]["Frame"] = runtime.Frame{}
Api["runtime"]["Frames"] = runtime.Frames{}
Api["runtime"]["CallersFrames"] = runtime.CallersFrames
Api["runtime"]["Func"] = runtime.Func{}
Api["runtime"]["FuncForPC"] = runtime.FuncForPC
Api["runtime"]["MemProfileRecord"] = runtime.MemProfileRecord{}
Api["runtime"]["MemStats"] = runtime.MemStats{}
Api["runtime"]["StackRecord"] = runtime.StackRecord{}
Api["runtime"]["TypeAssertionError"] = runtime.TypeAssertionError{}
Api["runtime"]["BlockProfile"] = runtime.BlockProfile
Api["runtime"]["Breakpoint"] = runtime.Breakpoint
Api["runtime"]["CPUProfile"] = runtime.CPUProfile
Api["runtime"]["Caller"] = runtime.Caller
Api["runtime"]["Callers"] = runtime.Callers
Api["runtime"]["GC"] = runtime.GC
Api["runtime"]["GOMAXPROCS"] = runtime.GOMAXPROCS
Api["runtime"]["GOROOT"] = runtime.GOROOT
Api["runtime"]["Goexit"] = runtime.Goexit
Api["runtime"]["GoroutineProfile"] = runtime.GoroutineProfile
Api["runtime"]["Gosched"] = runtime.Gosched
Api["runtime"]["KeepAlive"] = runtime.KeepAlive
Api["runtime"]["LockOSThread"] = runtime.LockOSThread
Api["runtime"]["MemProfile"] = runtime.MemProfile
Api["runtime"]["MutexProfile"] = runtime.MutexProfile
Api["runtime"]["NumCPU"] = runtime.NumCPU
Api["runtime"]["NumCgoCall"] = runtime.NumCgoCall
Api["runtime"]["NumGoroutine"] = runtime.NumGoroutine
Api["runtime"]["ReadMemStats"] = runtime.ReadMemStats
Api["runtime"]["ReadTrace"] = runtime.ReadTrace
Api["runtime"]["SetBlockProfileRate"] = runtime.SetBlockProfileRate
Api["runtime"]["SetCPUProfileRate"] = runtime.SetCPUProfileRate
Api["runtime"]["SetCgoTraceback"] = runtime.SetCgoTraceback
Api["runtime"]["SetFinalizer"] = runtime.SetFinalizer
Api["runtime"]["SetMutexProfileFraction"] = runtime.SetMutexProfileFraction
Api["runtime"]["Stack"] = runtime.Stack
Api["runtime"]["StartTrace"] = runtime.StartTrace
Api["runtime"]["StopTrace"] = runtime.StopTrace
Api["runtime"]["ThreadCreateProfile"] = runtime.ThreadCreateProfile
Api["runtime"]["UnlockOSThread"] = runtime.UnlockOSThread
Api["runtime"]["Version"] = runtime.Version
Api["runtime"]["CallersFrames"] = runtime.CallersFrames
Api["runtime"]["FuncForPC"] = runtime.FuncForPC
}