Documentation ¶
Index ¶
- func Serve(address string) error
- type AttachArgs
- type Tracer
- func (t *Tracer) AddEndTracePoint(args uintptr, reply *struct{}) error
- func (t *Tracer) AddStartTracePoint(args uintptr, reply *struct{}) error
- func (t *Tracer) Attach(args AttachArgs, reply *struct{}) error
- func (t *Tracer) Detach(args struct{}, reply *struct{}) error
- func (t *Tracer) Version(args struct{}, reply *int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AttachArgs ¶
type AttachArgs struct { Pid int TraceLevel, ParseLevel int // This parameter is required because the tracer may not have a chance to set the new trace points // after the attached tracee starts running without trace points. InitialStartTracePoint uintptr Verbose bool GoVersion, ProgramPath string FirstModuleDataAddr uintptr }
AttachArgs is the input argument of the service method 'Tracer.Attach'
type Tracer ¶
type Tracer struct {
// contains filtered or unexported fields
}
Tracer is the wrapper of the actual tracer in tgo/tracer package.
The simple name 'Tracer' is chosen because it becomes a part of the service methods the rpc client uses.
func (*Tracer) AddEndTracePoint ¶
AddEndTracePoint adds a new end trace point.
func (*Tracer) AddStartTracePoint ¶
AddStartTracePoint adds a new start trace point.
func (*Tracer) Attach ¶
func (t *Tracer) Attach(args AttachArgs, reply *struct{}) error
Attach lets the server attach to the specified process. It does nothing if the server is already attached.
Click to show internal directories.
Click to hide internal directories.