Starts a timer for a named kernel.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | name |
subroutine profiler_start(name) character(len=*), intent(in) :: name integer :: idx if (.not. profiling_enabled) return idx = find_or_create_timer(name) if (stack_depth >= MAX_STACK) then write(error_unit,'(a)') 'profiler: nesting stack overflow' error stop 1 end if stack_depth = stack_depth + 1 stack_ids(stack_depth) = idx stack_start(stack_depth) = real(MPI_Wtime(), rk) end subroutine profiler_start