Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
stats.h File Reference
#include <cstdint>
#include <map>
#include <string>
#include <vector>
#include "absl/strings/string_view.h"
#include "absl/time/time.h"
#include "ortools/base/timer.h"

Go to the source code of this file.

Classes

class  operations_research::Stat
 Base class for a statistic that can be pretty-printed. More...
 
class  operations_research::StatsGroup
 Base class to print a nice summary of a group of statistics. More...
 
class  operations_research::DistributionStat
 
class  operations_research::TimeDistribution
 
class  operations_research::RatioDistribution
 Statistic on the distribution of a sequence of ratios, displayed as %. More...
 
class  operations_research::DoubleDistribution
 Statistic on the distribution of a sequence of doubles. More...
 
class  operations_research::IntegerDistribution
 Statistic on the distribution of a sequence of integers. More...
 
class  operations_research::EnabledScopedTimeDistributionUpdater
 
class  operations_research::DisabledScopedTimeDistributionUpdater
 
class  operations_research::DisabledScopedInstructionCounter
 

Namespaces

namespace  operations_research
 In SWIG mode, we don't want anything besides these top-level includes.
 

Macros

#define IF_STATS_ENABLED(instructions)
 
#define SCOPED_TIME_STAT(stats)
 
#define SCOPED_INSTRUCTION_COUNT(time_limit)
 

Typedefs

using operations_research::ScopedTimeDistributionUpdater = DisabledScopedTimeDistributionUpdater
 
using operations_research::ScopedInstructionCounter = DisabledScopedInstructionCounter
 

Functions

std::string operations_research::MemoryUsage ()
 Returns the current thread's total memory usage in an human-readable string.
 

Macro Definition Documentation

◆ IF_STATS_ENABLED

#define IF_STATS_ENABLED ( instructions)

Definition at line 417 of file stats.h.

◆ SCOPED_INSTRUCTION_COUNT

#define SCOPED_INSTRUCTION_COUNT ( time_limit)

Definition at line 419 of file stats.h.

◆ SCOPED_TIME_STAT

#define SCOPED_TIME_STAT ( stats)

Definition at line 418 of file stats.h.