Initialise the profiler
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| logical, | intent(in), | optional | :: | enabled |
subroutine profiler_init(enabled) !! Initialise the profiler logical, intent(in), optional :: enabled state%initialized = .true. state%enabled = .true. if (present(enabled)) state%enabled = enabled state%num_regions = 0 end subroutine profiler_init