IMP  2.3.1
The Integrative Modeling Platform
benchmark_macros.h File Reference

Various general useful macros for IMP. More...

#include <IMP/benchmark/benchmark_config.h>
#include <IMP/base/flags.h>
#include <IMP/base/nullptr_macros.h>
#include <boost/timer.hpp>
#include <boost/scoped_ptr.hpp>
#include "internal/control.h"
#include "internal/flags.h"
#include <IMP/base/exception.h>
#include <boost/date_time/posix_time/posix_time.hpp>
#include <boost/date_time/posix_time/posix_time_types.hpp>
#include <boost/date_time/posix_time/posix_time_duration.hpp>
+ Include dependency graph for benchmark_macros.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define IMP_BENCHMARK_CPU_PROFILING_BEGIN
 
#define IMP_BENCHMARK_CPU_PROFILING_END
 
#define IMP_BENCHMARK_HEAP_CHECKING_BEGIN
 
#define IMP_BENCHMARK_HEAP_CHECKING_END
 
#define IMP_BENCHMARK_HEAP_PROFILING_BEGIN
 
#define IMP_BENCHMARK_HEAP_PROFILING_END
 
#define IMP_BENCHMARK_PROFILING_BEGIN
 
#define IMP_BENCHMARK_PROFILING_END
 
#define IMP_BENCHMARK_RUN
 
#define IMP_TIME(block, timev)
 Time the given command and assign the time of one iteration to the variable. More...
 
#define IMP_TIME_N(block, timev, N)
 Time the given command and assign the time of one iteration to the variable. More...
 
#define IMP_WALLTIME(block, timev)
 Time the given command and assign the time of one iteration to the variable. More...
 

Detailed Description

Various general useful macros for IMP.

Copyright 2007-2014 IMP Inventors. All rights reserved.

Definition in file benchmark_macros.h.

Macro Definition Documentation

#define IMP_BENCHMARK_PROFILING_BEGIN
Value:
IMP_BENCHMARK_CPU_PROFILING_BEGIN IMP_BENCHMARK_HEAP_CHECKING_BEGIN \
IMP_BENCHMARK_HEAP_PROFILING_BEGIN

Definition at line 87 of file benchmark_macros.h.

#define IMP_BENCHMARK_PROFILING_END
Value:
IMP_BENCHMARK_CPU_PROFILING_END IMP_BENCHMARK_HEAP_CHECKING_END \
IMP_BENCHMARK_HEAP_PROFILING_END

Definition at line 91 of file benchmark_macros.h.

#define IMP_TIME (   block,
  timev 
)

Time the given command and assign the time of one iteration to the variable.

The units for the time are in seconds.

See Also
IMP_TIME_N

Definition at line 97 of file benchmark_macros.h.

#define IMP_TIME_N (   block,
  timev,
 
)

Time the given command and assign the time of one iteration to the variable.

The units for the time are in seconds. The bit of code is run exactly N times.

See Also
IMP_TIME

Definition at line 147 of file benchmark_macros.h.

#define IMP_WALLTIME (   block,
  timev 
)

Time the given command and assign the time of one iteration to the variable.

The units for the time are in seconds.

See Also
IMP_TIME_N

Definition at line 120 of file benchmark_macros.h.