func (d *domainClient) TakeTypeProfile(ctx context.Context) (reply *TakeTypeProfileReply, err error) {
	reply = new(TakeTypeProfileReply)
	err = rpcc.Invoke(ctx, "Profiler.takeTypeProfile", nil, reply, d.conn)
	if err != nil {
		err = &internal.OpError{Domain: "Profiler", Op: "TakeTypeProfile", Err: err}
	}
	return
}
TakeTypeProfile invokes the Profiler method. Collect type profile.
package profiler
import (
	"context"
	"github.com/mafredri/cdp/protocol/internal"
	"github.com/mafredri/cdp/rpcc"
)
type domainClient struct{ conn *rpcc.Conn }
func NewClient(conn *rpcc.Conn) *domainClient {
	return &domainClient{conn: conn}
}
func (d *domainClient) Disable(ctx context.Context) (err error) {
	err = rpcc.Invoke(ctx, "Profiler.disable", nil, nil, d.conn)
	if err != nil {
		err = &internal.OpError{Domain: "Profiler", Op: "Disable", Err: err}
	}
	return
}
func (d *domainClient) Enable(ctx context.Context) (err error) {
	err = rpcc.Invoke(ctx, "Profiler.enable", nil, nil, d.conn)
	if err != nil {
		err = &internal.OpError{Domain: "Profiler", Op: "Enable", Err: err}
	}
	return
}
func (d *domainClient) GetBestEffortCoverage(ctx context.Context) (reply *GetBestEffortCoverageReply, err error) {
	reply = new(GetBestEffortCoverageReply)
	err = rpcc.Invoke(ctx, "Profiler.getBestEffortCoverage", nil, reply, d.conn)
	if err != nil {
		err = &internal.OpError{Domain: "Profiler", Op: "GetBestEffortCoverage", Err: err}
	}
	return
}
func (d *domainClient) SetSamplingInterval(ctx context.Context, args *SetSamplingIntervalArgs) (err error) {
	if args != nil {
		err = rpcc.Invoke(ctx, "Profiler.setSamplingInterval", args, nil, d.conn)
	} else {
		err = rpcc.Invoke(ctx, "Profiler.setSamplingInterval", nil, nil, d.conn)
	}
	if err != nil {
		err = &internal.OpError{Domain: "Profiler", Op: "SetSamplingInterval", Err: err}
	}
	return
}
func (d *domainClient) Start(ctx context.Context) (err error) {
	err = rpcc.Invoke(ctx, "Profiler.start", nil, nil, d.conn)
	if err != nil {
		err = &internal.OpError{Domain: "Profiler", Op: "Start", Err: err}
	}
	return
}
func (d *domainClient) StartPreciseCoverage(ctx context.Context, args *StartPreciseCoverageArgs) (err error) {
	if args != nil {
		err = rpcc.Invoke(ctx, "Profiler.startPreciseCoverage", args, nil, d.conn)
	} else {
		err = rpcc.Invoke(ctx, "Profiler.startPreciseCoverage", nil, nil, d.conn)
	}
	if err != nil {
		err = &internal.OpError{Domain: "Profiler", Op: "StartPreciseCoverage", Err: err}
	}
	return
}
func (d *domainClient) StartTypeProfile(ctx context.Context) (err error) {
	err = rpcc.Invoke(ctx, "Profiler.startTypeProfile", nil, nil, d.conn)
	if err != nil {
		err = &internal.OpError{Domain: "Profiler", Op: "StartTypeProfile", Err: err}
	}
	return
}
func (d *domainClient) Stop(ctx context.Context) (reply *StopReply, err error) {
	reply = new(StopReply)
	err = rpcc.Invoke(ctx, "Profiler.stop", nil, reply, d.conn)
	if err != nil {
		err = &internal.OpError{Domain: "Profiler", Op: "Stop", Err: err}
	}
	return
}
func (d *domainClient) StopPreciseCoverage(ctx context.Context) (err error) {
	err = rpcc.Invoke(ctx, "Profiler.stopPreciseCoverage", nil, nil, d.conn)
	if err != nil {
		err = &internal.OpError{Domain: "Profiler", Op: "StopPreciseCoverage", Err: err}
	}
	return
}
func (d *domainClient) StopTypeProfile(ctx context.Context) (err error) {
	err = rpcc.Invoke(ctx, "Profiler.stopTypeProfile", nil, nil, d.conn)
	if err != nil {
		err = &internal.OpError{Domain: "Profiler", Op: "StopTypeProfile", Err: err}
	}
	return
}
func (d *domainClient) TakePreciseCoverage(ctx context.Context) (reply *TakePreciseCoverageReply, err error) {
	reply = new(TakePreciseCoverageReply)
	err = rpcc.Invoke(ctx, "Profiler.takePreciseCoverage", nil, reply, d.conn)
	if err != nil {
		err = &internal.OpError{Domain: "Profiler", Op: "TakePreciseCoverage", Err: err}
	}
	return
}