A public type for profiling performance in the application. The ProfilerType is used to measure and record the performance of various parts of the application. It provides mechanisms to start, stop, and.
More...
|
| procedure | pre_init (this) |
| procedure | initialize (this) |
| procedure | start (this, title, section_id) |
| | Start section timing, add when not exist yet (i.e. when id < 1).
|
| procedure | stop (this, section_id) |
| procedure | print (this, output_unit) |
| procedure | destroy (this) |
| | Clean up the CPU timer object.
|
|
| real(dp) | sim_start_time |
| | the simulation start time which lies before initialization of the profiler
|
| integer(i4b) | tmr_run |
| | handle to timed section "Run"
|
| integer(i4b) | tmr_init |
| | handle to timed section "Initialize"
|
| integer(i4b) | tmr_update |
| | handle to timed section "Update"
|
| integer(i4b) | tmr_finalize |
| | handle to timed section "Finalize"
|
| integer(i4b) | tmr_prep_tstp |
| | handle to timed section "Prepare time step"
|
| integer(i4b) | tmr_do_tstp |
| | handle to timed section "Do time step"
|
| integer(i4b) | tmr_final_tstp |
| | handle to timed section "Finalize time step"
|
| integer(i4b) | tmr_output |
| | handle to timed section "Write output"
|
| integer(i4b) | tmr_nc_export |
| | handle to timed section "NetCDF export"
|
| type(measuredsectiontype), dimension(:), pointer | all_sections => null() |
| | all timed sections (up to MAX_NR_TIMED_SECTIONS)
|
| type(stlstackint) | callstack |
| | call stack of section ids
|
|
| procedure, private | set_print_option (this, profile_option) |
| | Set the profile option from the user input.
|
| procedure, private | add_section (this, title, parent_id) |
| | Add a new timed section to the tree, passing the parent id will add it as a child.
|
| procedure, private | print_section (this, section_id, level) |
| procedure, private | print_total (this, subtitle) |
| procedure, private | aggregate_walltime (this, title) |
| | Aggregate walltime over sections with a certain title.
|
| procedure, private | aggregate_counts (this, title) |
| | Aggregate counts over sections with a certain title.
|
| procedure, private | largest_title_length (this) |
| | Calculate the largest title length.
|
| procedure, private | sort_by_walltime (this, idxs) |
| | Sort section indexes based on walltime.
|
|
| integer(i4b), private | iout |
| | output unit number, typically simulation listing file
|
| integer(i4b), private | pr_option |
| | 0 = NONE, 1 = SUMMARY, 2 = DETAIL
|
| integer(i4b), private | nr_sections |
| | number of sections
|
| integer(i4b), dimension(3), private | top_three |
| | top three leaf sections based on walltime
|
| integer(i4b), private | max_title_len |
| | maximum title length
|
| integer(i4b), private | root_id |
| | currently only one root section is supported, this is the id
|
Definition at line 31 of file Profiler.f90.
◆ add_section()
| procedure, private profilermodule::profilertype::add_section |
( |
class(profilertype) | this, |
|
|
character(len=*) | title, |
|
|
integer(i4b) | parent_id ) |
|
private |
◆ aggregate_counts()
| procedure, private profilermodule::profilertype::aggregate_counts |
( |
class(profilertype) | this, |
|
|
character(len=*) | title ) |
|
private |
◆ aggregate_walltime()
| procedure, private profilermodule::profilertype::aggregate_walltime |
( |
class(profilertype) | this, |
|
|
character(len=*) | title ) |
|
private |
◆ destroy()
| procedure profilermodule::profilertype::destroy |
( |
class(profilertype) | this | ) |
|
◆ initialize()
| procedure profilermodule::profilertype::initialize |
( |
class(profilertype) | this | ) |
|
◆ largest_title_length()
| procedure, private profilermodule::profilertype::largest_title_length |
( |
class(profilertype) | this | ) |
|
|
private |
◆ pre_init()
| procedure profilermodule::profilertype::pre_init |
( |
class(profilertype) | this | ) |
|
◆ print()
| procedure profilermodule::profilertype::print |
( |
class(profilertype) | this, |
|
|
integer(i4b), intent(in) | output_unit ) |
◆ print_section()
| procedure, private profilermodule::profilertype::print_section |
( |
class(profilertype) | this, |
|
|
integer(i4b) | section_id, |
|
|
integer(i4b) | level ) |
|
private |
◆ print_total()
| procedure, private profilermodule::profilertype::print_total |
( |
class(profilertype) | this, |
|
|
character(len=*) | subtitle ) |
|
private |
◆ set_print_option()
| procedure, private profilermodule::profilertype::set_print_option |
( |
class(profilertype) | this, |
|
|
character(len=*), intent(in) | profile_option ) |
|
private |
◆ sort_by_walltime()
| procedure, private profilermodule::profilertype::sort_by_walltime |
( |
class(profilertype) | this, |
|
|
integer(i4b), dimension(:), allocatable | idxs ) |
|
private |
- Parameters
-
| idxs | array with unsorted section idxs |
Definition at line 67 of file Profiler.f90.
◆ start()
| procedure profilermodule::profilertype::start |
( |
class(profilertype) | this, |
|
|
character(len=*) | title, |
|
|
integer(i4b) | section_id ) |
◆ stop()
| procedure profilermodule::profilertype::stop |
( |
class(profilertype) | this, |
|
|
integer(i4b) | section_id ) |
◆ all_sections
| type(measuredsectiontype), dimension(:), pointer profilermodule::profilertype::all_sections => null() |
◆ callstack
| type(stlstackint) profilermodule::profilertype::callstack |
Definition at line 51 of file Profiler.f90.
51 type(STLStackInt) :: callstack
◆ iout
| integer(i4b), private profilermodule::profilertype::iout |
|
private |
Definition at line 44 of file Profiler.f90.
44 integer(I4B), private :: iout
◆ max_title_len
| integer(i4b), private profilermodule::profilertype::max_title_len |
|
private |
Definition at line 48 of file Profiler.f90.
48 integer(I4B), private :: max_title_len
◆ nr_sections
| integer(i4b), private profilermodule::profilertype::nr_sections |
|
private |
Definition at line 46 of file Profiler.f90.
46 integer(I4B), private :: nr_sections
◆ pr_option
| integer(i4b), private profilermodule::profilertype::pr_option |
|
private |
Definition at line 45 of file Profiler.f90.
45 integer(I4B), private :: pr_option
◆ root_id
| integer(i4b), private profilermodule::profilertype::root_id |
|
private |
Definition at line 49 of file Profiler.f90.
49 integer(I4B), private :: root_id
◆ sim_start_time
| real(dp) profilermodule::profilertype::sim_start_time |
Definition at line 32 of file Profiler.f90.
32 real(DP) :: sim_start_time
◆ tmr_do_tstp
| integer(i4b) profilermodule::profilertype::tmr_do_tstp |
Definition at line 39 of file Profiler.f90.
39 integer(I4B) :: tmr_do_tstp
◆ tmr_final_tstp
| integer(i4b) profilermodule::profilertype::tmr_final_tstp |
Definition at line 40 of file Profiler.f90.
40 integer(I4B) :: tmr_final_tstp
◆ tmr_finalize
| integer(i4b) profilermodule::profilertype::tmr_finalize |
Definition at line 37 of file Profiler.f90.
37 integer(I4B) :: tmr_finalize
◆ tmr_init
| integer(i4b) profilermodule::profilertype::tmr_init |
Definition at line 35 of file Profiler.f90.
35 integer(I4B) :: tmr_init
◆ tmr_nc_export
| integer(i4b) profilermodule::profilertype::tmr_nc_export |
Definition at line 42 of file Profiler.f90.
42 integer(I4B) :: tmr_nc_export
◆ tmr_output
| integer(i4b) profilermodule::profilertype::tmr_output |
Definition at line 41 of file Profiler.f90.
41 integer(I4B) :: tmr_output
◆ tmr_prep_tstp
| integer(i4b) profilermodule::profilertype::tmr_prep_tstp |
Definition at line 38 of file Profiler.f90.
38 integer(I4B) :: tmr_prep_tstp
◆ tmr_run
| integer(i4b) profilermodule::profilertype::tmr_run |
Definition at line 34 of file Profiler.f90.
34 integer(I4B) :: tmr_run
◆ tmr_update
| integer(i4b) profilermodule::profilertype::tmr_update |
Definition at line 36 of file Profiler.f90.
36 integer(I4B) :: tmr_update
◆ top_three
| integer(i4b), dimension(3), private profilermodule::profilertype::top_three |
|
private |
Definition at line 47 of file Profiler.f90.
47 integer(I4B), private, dimension(3) :: top_three
The documentation for this type was generated from the following file:
- /home/runner/work/modflow6/modflow6/src/Utilities/Performance/Profiler.f90