Timing routines for accounting
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
character(len=*), | private, | parameter | :: | moduleN | = | 'dbcsr_timings' | |
type(list_timerenv_type), | private, | SAVE | :: | timers_stack | |||
integer, | public, | parameter | :: | default_timings_level | = | 1 | |
integer, | public, | SAVE | :: | global_timings_level | = | default_timings_level |
returns the current timer env from the stack
Internal routine used by timeset_handler and timings_setup_tracing. If no routine with given name is found in timer_env%routine_names then a new entry is created.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=default_string_length), | intent(in) | :: | routineN |
Registers handlers with base_hooks.F
adds the given timer_env to the top of the stack
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(timer_env_type), | optional, | POINTER | :: | timer_env |
creates a new timer env
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(timer_env_type), | POINTER | :: | timer_env |
retains the given timer env
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(timer_env_type), | POINTER | :: | timer_env |
the timer env to retain |
releases the given timer env
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(timer_env_type), | POINTER | :: | timer_env |
the timer env to release |
Start timer
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | routineN | |||
integer, | intent(out) | :: | handle |
End timer
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | handle |
Set routine tracer
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | trace_max |
maximum number of calls reported per routine. Setting this to zero disables tracing. output unit used for printing the trace-messages |
||
integer, | intent(in) | :: | unit_nr |
maximum number of calls reported per routine. Setting this to zero disables tracing. output unit used for printing the trace-messages |
||
character(len=13), | intent(in) | :: | trace_str |
short info-string which is printed along with every message |
||
character(len=default_string_length), | intent(in), | optional, | DIMENSION(:) | :: | routine_names |
List of routine-names. If provided only these routines will be traced. If not present all routines will traced. |
Print current routine stack
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | unit_nr |