Package profiler provides profiling support for the application using github.com/pkg/profile.
It supports various profiling modes including CPU, memory, allocations, heap, mutex, block, and trace.
Start initializes profiling based on the provided configuration.
Returns a stop function that must be called to finalize profiling, and an error if initialization fails.
The stop function is safe to call even if profiling was not started.