A feature that counts how many command runs have completed.
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| integer, | public | :: | runs | = | 0 |
Initialize the stats feature.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(stats_feature_t), | intent(inout) | :: | self | |||
| type(watch_config_t), | intent(in) | :: | cfg |
Update run counter after each completed command execution.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(stats_feature_t), | intent(inout) | :: | self | |||
| integer, | intent(in) | :: | exitstat | |||
| real, | intent(in) | :: | seconds |
No-op callback invoked just before executing the command.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(watch_feature_t), | intent(inout) | :: | self | |||
| character(len=:), | intent(inout), | allocatable | :: | cmd |
No-op callback for detected file changes.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(watch_feature_t), | intent(inout) | :: | self | |||
| type(string_t), | intent(in), | allocatable | :: | changed(:) |
No-op callback for manifest key change.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(watch_feature_t), | intent(inout) | :: | self | |||
| integer(kind=int64), | intent(in) | :: | old_key | |||
| integer(kind=int64), | intent(in) | :: | new_key |
No-op start callback.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(watch_feature_t), | intent(inout) | :: | self |
No-op callback for watch list rebuild completion.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(watch_feature_t), | intent(inout) | :: | self | |||
| type(string_t), | intent(inout), | allocatable | :: | files(:) | ||
| type(root_info_t), | intent(inout), | allocatable | :: | roots(:) |
type, extends(watch_feature_t) :: stats_feature_t integer :: runs = 0 contains procedure :: init => stats_init procedure :: on_after_run => stats_after end type stats_feature_t