Is this your first time submitting a feature request?
Describe the feature
dbt.profiler is a context manager with an un-necessary "enabled" param. The CM can simply be used conditionally rather than always adding the overhead of a CM.. I.E.
if <condition>:
with profiler(outfile=<path_to_file>):
stuff
instead of
with profiler(enable=<conditional>, outfile=<path_to_file>):
This work should be done sometime after the API-ification effort is merged into main (or at least it's own feature branch) as this pattern makes more sense in that context.
Describe alternatives you've considered
No response
Who will this benefit?
No response
Are you interested in contributing this feature?
No response
Anything else?
No response
Is this your first time submitting a feature request?
Describe the feature
dbt.profileris a context manager with an un-necessary "enabled" param. The CM can simply be used conditionally rather than always adding the overhead of a CM.. I.E.instead of
This work should be done sometime after the API-ification effort is merged into main (or at least it's own feature branch) as this pattern makes more sense in that context.
Describe alternatives you've considered
No response
Who will this benefit?
No response
Are you interested in contributing this feature?
No response
Anything else?
No response