wholecell.utils.profiler

File for profiling tools

wholecell.utils.profiler.line_profile(func)[source]

Decorator for line profiling of a given function. Prints time spent on each line within a function every time the function is called.

@profile decorator from LineProfiler requires running the script through kernprof and additional setup but this decorator can be used in front of any function in the model with the lines below.

Usage:

from wholecell.utils.profiler import line_profile @line_profile def function_to_profile():