Checker.hpp

This File On Github
Ask A Question

API: latest
module: oatpp
#include "oatpp-test/Checker.hpp"

PerformanceChecker

Helper class to check performance of code block.

namespace oatpp { namespace test { 
  class PerformanceChecker {}
}}

Methods

Return Type Name Summary
[none] PerformanceChecker Constructor.
[none] ~PerformanceChecker Non virtual destructor.
v_int64 getElapsedTicks Get elapsed time from checker creation.

PerformanceChecker::PerformanceChecker

Constructor.

  • @param tag - log tag.

PerformanceChecker(const char* tag)

PerformanceChecker::~PerformanceChecker

Non virtual destructor. Will print time elapsed ticks on destruction.

~PerformanceChecker()

PerformanceChecker::getElapsedTicks

Get elapsed time from checker creation.

  • @return - ticks in microseconds.

v_int64 getElapsedTicks()

ThreadLocalObjectsChecker

Helper class to check block of code on memory leaks. Checks oatpp::base::Countable objects, and objects allocated on memory pools.

namespace oatpp { namespace test { 
  class ThreadLocalObjectsChecker {}
}}

Methods

Return Type Name Summary
[none] ThreadLocalObjectsChecker Constructor.
[none] ~ThreadLocalObjectsChecker Non virtual destructor.

ThreadLocalObjectsChecker::ThreadLocalObjectsChecker

Constructor.

  • @param tag - log tag.

ThreadLocalObjectsChecker(const char* tag)

ThreadLocalObjectsChecker::~ThreadLocalObjectsChecker

Non virtual destructor. Will halt program execution if memory leaks detected.

~ThreadLocalObjectsChecker()