UWARG Computer Vision
Functions
benchmark.h File Reference
#include <string>
Include dependency graph for benchmark.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void benchmark_function (std::string name, std::function< void()> func, int iter=100)
 Does a benchmark of the given function and outputs the results to BOOST_TEST_MESSAGE. More...
 

Detailed Description

Author
WARG

LICENSE

Copyright (c) 2015, Waterloo Aerial Robotics Group (WARG) All rights reserved.

This software is licensed under a modified version of the BSD 3 clause license that should have been included with this software in a file called COPYING.txt Otherwise it is available at: https://raw.githubusercontent.com/UWARG/computer-vision/master/COPYING.txt

Function Documentation

void benchmark_function ( std::string  name,
std::function< void()>  func,
int  iter = 100 
)

Does a benchmark of the given function and outputs the results to BOOST_TEST_MESSAGE.

Parameters
funcFunction to be run, should have minimal overhead (ideally setup beforehand and call with a lambda function)
iterNumber of times the function will be run for profiling. The higher the better.