2021-02-14 16:16:01 +03:00
|
|
|
package profiler
|
|
|
|
|
|
|
|
type noopProfiler struct{}
|
|
|
|
|
|
|
|
func (p *noopProfiler) Start() error {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *noopProfiler) Stop() error {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *noopProfiler) String() string {
|
|
|
|
return "noop"
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewProfiler returns new noop profiler
|
2024-12-09 13:06:43 +03:00
|
|
|
func NewProfiler(_ ...Option) Profiler {
|
2021-02-14 16:16:01 +03:00
|
|
|
return &noopProfiler{}
|
|
|
|
}
|