VTB_BENCHMARK_BLOCK
VTB_PROFILE_BLOCK
template <class ... Args>
class vtb::profile::Benchmark
Methods
  • ~Benchmark()
  • Benchmark(const char * tag, Args... params)explicit
  • Benchmark()
class vtb::profile::Profile

Record code block execution time.

  • To profile a function or code block insert
    VTB_PROFILE_BLOCK(__func__);
    
    at the start of the block.
  • You can use any constant string instead of __func__.

Methods
  • print() -> void
  • ~Profile()
  • Profile(const char * tag)explicit
  • Profile()
template <class Tuple, std::size_t N>
struct vtb::profile::tuple_traits
Methods
  • print(std::ostream & out, const Tuple & t) -> void
template <class Tuple>
struct vtb::profile::tuple_traits< Tuple, 1 >
Methods
  • print(std::ostream & out, const Tuple & t) -> void
template <class ... Args>
make_benchmark(const char * tag, Args... args) -> Benchmark< Args... >
const char * filename
std::mutex mtx
std::ofstream stream
thread_local int profile_level