Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Input ¶
type Input struct {
Host string `json:"host,omitempty"`
Port int `json:"port,omitempty"`
Profile string `json:"profile,omitempty"`
Seconds int `json:"seconds,omitempty"`
MaxLines int `json:"max_lines,omitempty"` // Maximum lines to return (default: 100 for top view)
Offset int `json:"offset,omitempty"` // Line offset for pagination
}
type Tool ¶
type Tool struct {
// contains filtered or unexported fields
}
func (*Tool) PprofHandler ¶
func (p *Tool) PprofHandler(context context.Context, _ *mcp.ServerSession, params *mcp.CallToolParamsFor[Input]) (*mcp.CallToolResultFor[Output], error)
Click to show internal directories.
Click to hide internal directories.