Neko 1.99.9
A portable framework for high-order spectral element flow simulations
Loading...
Searching...
No Matches
runtime_stats Module Reference

Runtime statistics.

Data Types

type  runtime_stats_t
 

Functions/Subroutines

subroutine runtime_stats_init (this, params)
 Initialise runtime statistics.
 
subroutine runtime_stats_free (this)
 Destroy runtime statistics.
 
subroutine runtime_stats_start_region (this, name, region_id)
 Start measuring time for the region named name with id region_id.
 
subroutine runtime_stats_end_region (this, name, region_id)
 Compute elapsed time for the current region.
 
subroutine runtime_stats_report (this)
 Report runtime statistics for all recorded regions.
 
subroutine runtime_stats_find_region_id (this, name, region_id)
 Find or allocate a region id for the named region name.
 
subroutine runtime_stats_grow (this)
 Double the number of regions, keeping the recorded ones.
 

Variables

integer, parameter rt_stats_init_regions = 50
 Initial number of regions, the table grows when it is full.
 
integer, parameter rt_stats_reserved_regions = 25
 Region ids reserved for regions started with an explicit id.
 
integer, parameter rt_stats_max_name_len = 25
 Length a region name is stored, looked up and reported with.
 
type(runtime_stats_t), public neko_rt_stats
 

Function/Subroutine Documentation

◆ runtime_stats_end_region()

subroutine runtime_stats::runtime_stats_end_region ( class(runtime_stats_t), intent(inout)  this,
character(len=*), intent(in), optional  name,
integer, intent(in), optional  region_id 
)
private
Parameters
nameOptional name of the region to close.
region_idOptional id of the region to close.

Definition at line 172 of file runtime_statistics.f90.

◆ runtime_stats_find_region_id()

subroutine runtime_stats::runtime_stats_find_region_id ( class(runtime_stats_t), intent(inout)  this,
character(len=*), intent(in)  name,
integer, intent(out)  region_id 
)
private

The table is grown when no free region is left.

Parameters
nameName of the region, compared by its first RT_STATS_MAX_NAME_LEN characters.
region_idId of the region found or allocated.

Definition at line 312 of file runtime_statistics.f90.

◆ runtime_stats_free()

subroutine runtime_stats::runtime_stats_free ( class(runtime_stats_t), intent(inout)  this)
private

Definition at line 114 of file runtime_statistics.f90.

◆ runtime_stats_grow()

subroutine runtime_stats::runtime_stats_grow ( class(runtime_stats_t), intent(inout)  this)
private

Definition at line 354 of file runtime_statistics.f90.

◆ runtime_stats_init()

subroutine runtime_stats::runtime_stats_init ( class(runtime_stats_t), intent(inout)  this,
type(json_file), intent(inout)  params 
)
private

Definition at line 83 of file runtime_statistics.f90.

◆ runtime_stats_report()

subroutine runtime_stats::runtime_stats_report ( class(runtime_stats_t), intent(inout)  this)
private

Definition at line 221 of file runtime_statistics.f90.

◆ runtime_stats_start_region()

subroutine runtime_stats::runtime_stats_start_region ( class(runtime_stats_t), intent(inout)  this,
character(len=*), intent(in)  name,
integer, intent(in), optional  region_id 
)
private

Definition at line 135 of file runtime_statistics.f90.

Variable Documentation

◆ neko_rt_stats

type(runtime_stats_t), public runtime_stats::neko_rt_stats

Definition at line 78 of file runtime_statistics.f90.

◆ rt_stats_init_regions

integer, parameter runtime_stats::rt_stats_init_regions = 50
private

Definition at line 51 of file runtime_statistics.f90.

◆ rt_stats_max_name_len

integer, parameter runtime_stats::rt_stats_max_name_len = 25
private

Definition at line 55 of file runtime_statistics.f90.

◆ rt_stats_reserved_regions

integer, parameter runtime_stats::rt_stats_reserved_regions = 25
private

Definition at line 53 of file runtime_statistics.f90.