More on this: Launching Profiler for an ABAP Program
More on this: Creating an ABAP Trace Using a Wizard
By creating a trace request. Certain programs or program units cannot be started directly as ABAP applications. As an alternative to profiling such a program in its ABAP Unit tests, you can create a trace request and profile a method or function module whenever its execution is triggered in the back-end system by a transaction, HTTP request, RFC call, or within a background process
More on this: Creating an ABAP Trace Request
By using a predefined launch configuration for the ABAP Profiler
More on this: Working with Profile Configurations
More on this: Starting and Stopping the ABAP Profiler in the Debugger