| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| integer, | private, | parameter | :: | MAX_NAME_LEN | = | 64 | |
| integer, | private, | parameter | :: | MAX_REGIONS | = | 256 | |
| type(profiler_state), | private, | save | :: | state |
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| logical, | public | :: | enabled | = | .true. | ||
| logical, | public | :: | initialized | = | .false. | ||
| integer, | public | :: | num_regions | = | 0 | ||
| type(tracked_region), | public | :: | regions(MAX_REGIONS) |
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| logical, | public | :: | active | = | .false. | ||
| integer, | public | :: | call_count | = | 0 | ||
| character(len=MAX_NAME_LEN), | public | :: | name | = | "" | ||
| logical, | public | :: | nvtx_only | = | .false. |
If true, only shows in NVTX timeline, not in text report |
|
| real(kind=dp), | public | :: | start_time | = | 0.0_dp | ||
| real(kind=dp), | public | :: | total_time | = | 0.0_dp |
Accumulated time (s) for a named region. Public for the unit-test suite only.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | name |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | name |
Public for the unit-test suite only.
Public for the unit-test suite only.
Finalise the profiler
Initialise the profiler
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| logical, | intent(in), | optional | :: | enabled |
Print profiling report If root_region is specified, percentages are relative to that region
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in), | optional | :: | title | ||
| character(len=*), | intent(in), | optional | :: | root_region |
Reset all timing data
Start a named profiling region If nvtx_only is true, the region only appears in NVTX timeline, not in text report
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | name | |||
| logical, | intent(in), | optional | :: | nvtx_only |
Stop a named profiling region
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | name |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | name |