Start measuring time and record it in acc
.
Start measuring time and record it in acc
.
This function should always be used in combination with profileEnd in a similar way with opening and closing
a sequence of brackets, where the code between a profile call and its corresponding profileEnd will have its
execution time measured and stored into acc
Finish profiling the current section of code, as determined by the most recent profile call
Initialize profiling
Print profile information using log
Trait to be used when profiling is needed. To profile a section of the code, the following steps should be followed: - Call profileInit(<label_for_first_section>, <label_for_second_section>, ...) and store it into an implicit value - Use profile(<section_name>) and profileEnd in a bracket opening/closing fashion, where the code between a profile call and its corresponding profileEnd will have its execution time measured and stored into its accumulator - Call profilePrint at the end to log the profiling information gathered