Documentation ¶
Index ¶
- Variables
- func FilterOnlyGoSource(callinfo CallInfo) (valid bool, stop bool)
- func FilterStopRuntimeCallerPackage(callinfo CallInfo) (valid bool, stop bool)
- type CallInfo
- type CallInfoImpl
- func (t CallInfoImpl) FileDir() string
- func (t CallInfoImpl) FileName() string
- func (t CallInfoImpl) FilePath() string
- func (t CallInfoImpl) FuncName() string
- func (t CallInfoImpl) Line() int
- func (t CallInfoImpl) PC() uintptr
- func (t CallInfoImpl) PCFunc() *runtime.Func
- func (t CallInfoImpl) PackageName() string
- type Filter
Constants ¶
This section is empty.
Variables ¶
View Source
var FilterCommons = []Filter{ FilterOnlyGoSource, FilterStopRuntimeCallerPackage, }
FilterCommons contains all common filters
Functions ¶
func FilterOnlyGoSource ¶
FilterOnlyGoSource filter CallInfo FileName end with ".go"
func FilterStopRuntimeCallerPackage ¶
FilterStopRuntimeCallerPackage filter CallInfo to stop after reach KDGoLib/runtimecaller package
Types ¶
type CallInfo ¶
type CallInfo interface { // builtin data PC() uintptr FilePath() string Line() int // extra info after some process PCFunc() *runtime.Func PackageName() string FileDir() string FileName() string FuncName() string }
CallInfo contains runtime caller information
func GetByFilters ¶
GetByFilters return CallInfo until all filters are valid
func ListByFilters ¶
ListByFilters return all CallInfo stack for all filters are valid
type CallInfoImpl ¶
type CallInfoImpl struct {
// contains filtered or unexported fields
}
CallInfoImpl implement CallInfo
func (CallInfoImpl) FileName ¶
func (t CallInfoImpl) FileName() string
FileName return CallInfo data
func (CallInfoImpl) FilePath ¶
func (t CallInfoImpl) FilePath() string
FilePath return CallInfo data
func (CallInfoImpl) FuncName ¶
func (t CallInfoImpl) FuncName() string
FuncName return CallInfo data
func (CallInfoImpl) PCFunc ¶
func (t CallInfoImpl) PCFunc() *runtime.Func
PCFunc return CallInfo data
func (CallInfoImpl) PackageName ¶
func (t CallInfoImpl) PackageName() string
PackageName return CallInfo data
Click to show internal directories.
Click to hide internal directories.