Is there a way to start and stop profiling from inside the profiled application itself programmatically ?I'd like to profile a section of code only when certain application conditions are met, i.e. in app code I would like to make a temporary change and have something like this: