Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::EnabledScopedTimeStats Class Reference

#include <stats.h>

Public Member Functions

 EnabledScopedTimeStats (StatsGroup *stats, absl::string_view function_name)
 EnabledScopedTimeStats (const EnabledScopedTimeStats &)=delete
EnabledScopedTimeStatsoperator= (const EnabledScopedTimeStats &)=delete
 EnabledScopedTimeStats (EnabledScopedTimeStats &&)=delete
EnabledScopedTimeStatsoperator= (EnabledScopedTimeStats &&)=delete

Detailed Description

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).

Definition at line 381 of file stats.h.

Constructor & Destructor Documentation

◆ EnabledScopedTimeStats() [1/3]

operations_research::EnabledScopedTimeStats::EnabledScopedTimeStats ( StatsGroup * stats,
absl::string_view function_name )
inlineexplicit

Definition at line 383 of file stats.h.

◆ EnabledScopedTimeStats() [2/3]

operations_research::EnabledScopedTimeStats::EnabledScopedTimeStats ( const EnabledScopedTimeStats & )
delete

◆ EnabledScopedTimeStats() [3/3]

operations_research::EnabledScopedTimeStats::EnabledScopedTimeStats ( EnabledScopedTimeStats && )
delete

Member Function Documentation

◆ operator=() [1/2]

EnabledScopedTimeStats & operations_research::EnabledScopedTimeStats::operator= ( const EnabledScopedTimeStats & )
delete

◆ operator=() [2/2]

EnabledScopedTimeStats & operations_research::EnabledScopedTimeStats::operator= ( EnabledScopedTimeStats && )
delete

The documentation for this class was generated from the following file: