github.com/Aoi-hosizora/ahlib@v1.5.1-0.20230404072829-241b93cf91c7/xruntime/README.md (about) 1 # xruntime 2 3 ## Dependencies 4 5 + (xtesting) 6 7 ## Documents 8 9 ### Types 10 11 + `type TraceFrame struct` 12 + `type TraceStack []*TraceFrame` 13 + `type ProxyEnv struct` 14 + `type NetAddrType string` 15 + `type ConcreteNetAddr struct` 16 17 ### Variables 18 19 + None 20 21 ### Constants 22 23 + `const PprofGoroutineProfile string` 24 + `const PprofThreadcreateProfile string` 25 + `const PprofHeapProfile string` 26 + `const PprofAllocsProfile string` 27 + `const PprofBlockProfle string` 28 + `const PprofMutexProfile string` 29 + `const TCPAddrType NetAddrType` 30 + `const UDPAddrType NetAddrType` 31 + `const IPAddrType NetAddrType` 32 + `const UnixAddrType NetAddrType` 33 34 ### Functions 35 36 + `func NameOfFunction(f interface{}) string` 37 + `func RawStack(all bool) []byte` 38 + `func RuntimeTraceStack(skip uint) TraceStack` 39 + `func RuntimeTraceStackWithInfo(skip uint) (stack TraceStack, filename string, funcName string, lineIndex int, lineText string)` 40 + `func HackHideString(given unsafe.Pointer, givenLength int, hidden string) (dataAddr uintptr)` 41 + `func HackHideStringAfterString(given, hidden string) string` 42 + `func HackExtractHiddenString(given unsafe.Pointer, givenLength int) (hidden string)` 43 + `func HackExtractHiddenStringAfterString(given string) (hidden string)` 44 + `func SignalName(sig syscall.Signal) string` 45 + `func SignalReadableName(sig syscall.Signal) string` 46 + `func GetProxyEnv() *ProxyEnv` 47 + `func ParseNetAddr(addr net.Addr) (*ConcreteNetAddr, bool)` 48 49 ### Methods 50 51 + `func (t *TraceFrame) String() string` 52 + `func (t *TraceStack) String() string` 53 + `func (p *ProxyEnv) PrintLog(logFunc func(string), prefix string)`