明示フラグで計測状態を設定する。
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| logical, | intent(in) | :: | enabled |
subroutine perf_configure(enabled) logical, intent(in) :: enabled call perf_reset() perf_state%enabled = enabled perf_state%omp_max_threads = 1_i32 !$ perf_state%omp_max_threads = int(max(1, omp_get_max_threads()), i32) end subroutine perf_configure