Documentation
¶
Overview ¶
Package callgraph provides a backward-compatible wrapper for perflib/callgraph. The generator.go file is intentionally left empty because all types and functions are now defined via type aliases in model.go, delegating to perflib/callgraph.
Package callgraph provides unified call graph data structures and utilities. This package delegates to perflib/callgraph and provides type aliases for backward compatibility.
Index ¶
- type CallGraph
- type CallGraphAnalysis
- type CalleeInfo
- type CallerInfo
- type DOTWriter
- type Edge
- type FunctionAnalysis
- type Generator
- type GeneratorOptions
- type GzipWriter
- type HotPath
- type JSONWriter
- type ModuleAnalysis
- type Node
- type Stats
- type ThreadCallGraph
- type ThreadGroupAnalysis
- type WriteResult
- type XDotEdge
- type XDotJSONOutput
- type XDotObject
- type XDotWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CallGraphAnalysis ¶
type CallGraphAnalysis = libcg.CallGraphAnalysis
CallGraphAnalysis holds the complete enhanced analysis data.
type CalleeInfo ¶
type CalleeInfo = libcg.CalleeInfo
CalleeInfo represents information about a callee of a function.
type CallerInfo ¶
type CallerInfo = libcg.CallerInfo
CallerInfo represents information about a caller of a function.
type FunctionAnalysis ¶
type FunctionAnalysis = libcg.FunctionAnalysis
FunctionAnalysis provides detailed analysis for a single function.
type Generator ¶
Generator generates call graph data from parsed samples.
func NewGenerator ¶
func NewGenerator(opts *GeneratorOptions) *Generator
NewGenerator creates a new call graph generator.
type GeneratorOptions ¶
type GeneratorOptions = libcg.GeneratorOptions
GeneratorOptions holds configuration options for the call graph generator.
func DefaultGeneratorOptions ¶
func DefaultGeneratorOptions() *GeneratorOptions
DefaultGeneratorOptions returns default generator options.
type GzipWriter ¶
type GzipWriter = writer.GzipWriter[*CallGraph]
GzipWriter writes call graph data as gzipped JSON.
func NewGzipWriter ¶
func NewGzipWriter() *GzipWriter
NewGzipWriter creates a new gzip writer with default compression.
type JSONWriter ¶
type JSONWriter = writer.JSONWriter[*CallGraph]
JSONWriter writes call graph data as JSON.
func NewPrettyJSONWriter ¶
func NewPrettyJSONWriter() *JSONWriter
NewPrettyJSONWriter creates a JSON writer with pretty printing.
type ModuleAnalysis ¶
type ModuleAnalysis = libcg.ModuleAnalysis
ModuleAnalysis provides aggregated analysis by module/package.
type ThreadCallGraph ¶
type ThreadCallGraph = libcg.ThreadCallGraph
ThreadCallGraph represents a call graph for a single thread.
func NewThreadCallGraph ¶
func NewThreadCallGraph(tid int, threadName string) *ThreadCallGraph
NewThreadCallGraph creates a new thread-specific call graph.
type ThreadGroupAnalysis ¶
type ThreadGroupAnalysis = libcg.ThreadGroupAnalysis
ThreadGroupAnalysis provides aggregated analysis by thread group.
type WriteResult ¶
type WriteResult = writer.WriteResult
WriteResult is an alias to the common writer.WriteResult.
type XDotJSONOutput ¶
type XDotJSONOutput = libcg.XDotJSONOutput
XDotJSONOutput represents the xdot_json format compatible with graphviz.
type XDotObject ¶
type XDotObject = libcg.XDotObject
XDotObject represents a node in xdot_json format.
type XDotWriter ¶
type XDotWriter = libcg.XDotWriter
XDotWriter writes call graph data in xdot_json format.