![]() |
Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
|
#include <stats.h>
Public Member Functions | |
EnabledScopedTimeStats (StatsGroup *stats, absl::string_view function_name) | |
EnabledScopedTimeStats (const EnabledScopedTimeStats &)=delete | |
EnabledScopedTimeStats & | operator= (const EnabledScopedTimeStats &)=delete |
EnabledScopedTimeStats (EnabledScopedTimeStats &&)=delete | |
EnabledScopedTimeStats & | operator= (EnabledScopedTimeStats &&)=delete |
Measures the time from this macro line to the end of the scope and adds it to the distribution (from the given StatsGroup) with the same name as the enclosing function.
Note(user): This adds more extra overhead around the measured code compared to defining your own TimeDistribution stat in your StatsGroup. About 80ns per measurement compared to about 20ns (as of 2012-06, on my workstation).
|
inlineexplicit |
|
delete |
|
delete |
|
delete |
|
delete |