radis.test.spectrum.test_utils moduleΒΆ
Created on Tue Jul 27 02:04:14 2021
@author: erwan
- test_perf_profile(*args, **kwargs)[source]ΒΆ
Test visual/interactive performance profile
Examples
- ::
s = calc_spectrum(β¦) s.print_perf_profile()
- # output >>
- spectrum_calculation 0.189s ββββββββββββββββ
check_line_databank 0.000s check_non_eq_param 0.042s βββ fetch_energy_5 0.015s β calc_weight_trans 0.008s reinitialize 0.002s
copy_database 0.000s memory_usage_warning 0.002s reset_population 0.000s
- calc_noneq_population 0.041s βββ
part_function 0.035s ββ population 0.006s
- scaled_non_eq_linestrength 0.005s
map_part_func 0.001s corrected_population_se 0.003s
calc_emission_integral 0.006s applied_linestrength_cutoff 0.002s calc_lineshift 0.001s calc_hwhm 0.007s generate_wavenumber_arrays 0.001s calc_line_broadening 0.074s ββββββ
precompute_DLM_lineshapes 0.012s DLM_Initialized_vectors 0.000s DLM_closest_matching_line 0.001s DLM_Distribute_lines 0.001s DLM_convolve 0.060s βββββ others 0.001s
calc_other_spectral_quan 0.003s generate_spectrum_obj 0.000s others -0.016s
Generate a graphical, explorative perf profile (requires
tuna
installed)s.generate_perf_profile()
See output of
generate_perf_profile()
in https://github.com/radis/radis/pull/325See also