You can customize how the ABAP Trace records ABAP program runs. Here is how to set the ABAP Trace preferences.
(Choose Window Preferences from the ABAP Development Tools toolbar. In the Preferences dialog that opens, open ABAP Development Profiling .)
Here is Understanding ABAP Profiler Settings.
ABAP traces that you start with Profile As ABAP Application or via a trace request will use the preferences that you have set.