Versions in this module Expand all Collapse all v1 v1.1.2 Mar 16, 2025 Changes in this version + func NewFileEntDB(conf *conf.Data) (repo.FileRepo, error) + func ParseDBPath(dbPath string) string + type FileEntDB struct + func (f *FileEntDB) Close() error + func (f *FileEntDB) DeleteFileInfo(id int64) error + func (f *FileEntDB) GetFileInfoByID(id int64) (*entity.FileInfo, error) + func (f *FileEntDB) ListFileInfos(fileType entity.FileType, limit int, offset int) ([]*entity.FileInfo, error) + func (f *FileEntDB) SaveFileInfo(info *entity.FileInfo) error + type StaticEntDBImpl struct + func NewStaticEntDBImpl(dbPath string) (*StaticEntDBImpl, error) + func (s *StaticEntDBImpl) Close() error + func (s *StaticEntDBImpl) GetAllFuncEdges() ([]*entity.FuncEdge, error) + func (s *StaticEntDBImpl) GetAllFuncNodes() ([]*entity.FuncNode, error) + func (s *StaticEntDBImpl) GetCalleeEdges(callerKey string) ([]*entity.FuncNode, error) + func (s *StaticEntDBImpl) GetCallerEdges(calleeKey string) ([]*entity.FuncNode, error) + func (s *StaticEntDBImpl) GetFuncNodeByKey(key string) (*entity.FuncNode, error) + func (s *StaticEntDBImpl) InitTable() error + func (s *StaticEntDBImpl) SaveFuncEdge(edge *entity.FuncEdge) error + func (s *StaticEntDBImpl) SaveFuncNode(node *entity.FuncNode) error + type TraceEntDB struct + func NewTraceEntDB(dbPath string) (*TraceEntDB, error) + func (d *TraceEntDB) Close() error + func (d *TraceEntDB) GetAllFunctionName() ([]string, error) + func (d *TraceEntDB) GetAllGIDs(page int, limit int) ([]entity.GoroutineTrace, error) + func (d *TraceEntDB) GetAllParentIds() ([]int64, error) + func (d *TraceEntDB) GetAllUnfinishedFunctions(threshold int64) ([]entity.AllUnfinishedFunction, error) + func (d *TraceEntDB) GetCalleeFunctions(functionName string) ([]string, error) + func (d *TraceEntDB) GetCallerFunctions(functionName string) ([]string, error) + func (d *TraceEntDB) GetChildFunctions(parentId int64) ([]string, error) + func (d *TraceEntDB) GetFunctionAnalysis(functionName string, queryType string) ([]entity.FunctionNode, error) + func (d *TraceEntDB) GetFunctionCallDepths(functionName string) ([]int, error) + func (d *TraceEntDB) GetFunctionCallGraph(functionName string, depth int, direction string) (*entity.FunctionCallGraph, error) + func (d *TraceEntDB) GetGidsByFunctionName(functionName string) ([]string, error) + func (d *TraceEntDB) GetGoroutineCallDepth(gid uint64) (int, error) + func (d *TraceEntDB) GetGoroutineExecutionTime(gid uint64) (string, error) + func (d *TraceEntDB) GetGoroutineStats() (*entity.GoroutineStats, error) + func (d *TraceEntDB) GetHotFunctions(sortBy string) ([]entity.HotFunction, error) + func (d *TraceEntDB) GetInitialFunc(gid uint64) (string, error) + func (d *TraceEntDB) GetLastFunction() (*entity.TraceData, error) + func (d *TraceEntDB) GetParamsByID(id int32) ([]functrace.TraceParams, error) + func (d *TraceEntDB) GetTotalGIDs() (int, error) + func (d *TraceEntDB) GetTraceByID(id int) (*entity.TraceData, error) + func (d *TraceEntDB) GetTraceChildren(parentID int64) ([]entity.TraceData, error) + func (d *TraceEntDB) GetTracesByFuncName(functionName string) ([]entity.TraceData, error) + func (d *TraceEntDB) GetTracesByGID(gid uint64) ([]entity.TraceData, error) + func (d *TraceEntDB) GetTracesByParentId(parentId int64) ([]entity.TraceData, error) + func (d *TraceEntDB) IsGoroutineFinished(gid uint64) (bool, error)