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 16:23:25 +03:00
|
|
|
func NewProfiler(_ ...Option) Profiler {
|
2021-02-14 16:16:01 +03:00
|
|
|
return &noopProfiler{}
|
|
|
|
}
|