profiler_configure Subroutine

public subroutine profiler_configure(enabled, nested)

Configure profiling behavior at runtime.

Arguments

Type IntentOptional Attributes Name
logical, intent(in) :: enabled
logical, intent(in) :: nested

Source Code

   subroutine profiler_configure(enabled, nested)
      logical, intent(in) :: enabled
      logical, intent(in) :: nested

      profiling_enabled = enabled
      nested_enabled = nested

      if (.not. profiling_enabled) then
         call profiler_reset()
      end if
   end subroutine profiler_configure