radis.misc.profiler module

Profiler class, for printing time spent on various steps during Spectrum calculation under SpectrumFactory based on verbose level.

Also stores Spectrum calculation time dependent parameters, under the attribute

final

Routine Listing


class Profiler(verbose)[source]

Bases: object

A class to store Spectrum calculation time dependent parameters, under the attribute final of SpectrumFactory.

It also hold functions to print all the entities based on verbose value.

See also

input, :py:attr:`~radis.misc.profiler.Profiler,

add_entry(dictionary, key, verbose, count)[source]
add_time(dictionary, key, verbose, count, time_calculated)[source]
start(key, verbose_level, optional='')[source]
stop(key, details)[source]