perf_m Module

Profiling



Variables

Type Visibility Attributes Name Initial
integer, public :: nperf = 0

Number of profiling sections


Functions

public function perf_get_time_last(nm)

Returns time [s] spent in last profiling section

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: nm

Name of profiling section

Return Value real(kind=dp)


Subroutines

public subroutine perf_reset(nm)

Resets profiling (if nm is not present, all profiling sections are reset)

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in), optional :: nm

Name of profiling section that shall be reset

public subroutine perf_start(nm)

Starts profiling

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: nm

Name of profiling section

public subroutine perf_stop(nm)

Starts profiling

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: nm

Name of profiling section

public subroutine perf_print(nm, nm_ref, comm)

Prints profiling statistics to screen

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in), optional :: nm

Name of profiling section that shall be printed, if not present all available profiling sections are printed

character(len=*), intent(in), optional :: nm_ref

Name of profiling section that is a reference section, if not present, section with maximum time is chosen as reference

integer, intent(in), optional :: comm

Prints profiling evaluated over processes in comm if not present only statistics for master is performed