Internal type for global profiler state
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| logical, | public | :: | enabled | = | .true. | ||
| logical, | public | :: | initialized | = | .false. | ||
| integer(kind=default_int), | public | :: | num_regions | = | 0 | ||
| type(tracked_region), | public | :: | regions(MAX_REGIONS) | ||||
| integer(kind=default_int), | public | :: | stack(MAX_REGIONS) |
Stack of active region indices (for stack-based stop) |
|||
| integer(kind=default_int), | public | :: | stack_depth | = | 0 |
Current depth of the active region stack |
type :: profiler_state !! Internal type for global profiler state logical :: initialized = .false. logical :: enabled = .true. integer(default_int) :: num_regions = 0 type(tracked_region) :: regions(MAX_REGIONS) integer(default_int) :: stack_depth = 0 !! Current depth of the active region stack integer(default_int) :: stack(MAX_REGIONS) !! Stack of active region indices (for stack-based stop) end type profiler_state