Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct { // The URL of the Profefe service. The config value may be a [placeholder](https://caddyserver.com/docs/conventions#placeholders). Address string `json:"address,omitempty"` // The service name reported to Profefe. The config value may be a [placeholder](https://caddyserver.com/docs/conventions#placeholders). Service string `json:"service,omitempty"` // The timeout for the upload call. Setting the value to `0` disables the timeout and the call waits indefinitely until the upload is finished. Timeout caddy.Duration `json:"timeout,omitempty"` // The profiling parameters to be reported to Profefe. // The paramters cpu_profile_rate, block_profile_rate, and mutex_profile_fraction are inherited from the `profiling` app if `profefe` // is configured as a child module. The `profile_types` field is inherited if not configured explicitly. // If `profefe` is configured as an app, all the parameters are instated as-is. Parameters *caddy_profiling.Parameters `json:"parameters,omitempty"` // contains filtered or unexported fields }
The `profefe` app collects profiling data during the life-time of the process and uploads them to the profefe server.
func (*App) CaddyModule ¶
func (*App) CaddyModule() caddy.ModuleInfo
CaddyModule implements caddy.Module
func (*App) SetProfilingParameter ¶
func (a *App) SetProfilingParameter(parameters caddy_profiling.Parameters)
SetProfilingParameter sets the enabled Profefe profile types as configured by the `profiling` app. If the profefe app is configured with `profile_types`, then the ones specific to profefe take priority and the ones passed from the `profiling` app are ignored.
type ProfilingApp ¶
type ProfilingApp struct {
App
}
ProfilingApp is the container of the `profefe` profiler if configured as a guest module of the `profiling` app
func (*ProfilingApp) CaddyModule ¶
func (*ProfilingApp) CaddyModule() caddy.ModuleInfo
Click to show internal directories.
Click to hide internal directories.