Namespaces | Typedefs | Functions | Variables
tictoc.cpp File Reference
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <sys/time.h>
#include <map>
#include <vector>
#include <string>
#include <algorithm>
#include "tictoc.hpp"
Include dependency graph for tictoc.cpp:

Go to the source code of this file.

Namespaces

namespace  fovis
 

quick and dirty profiling tool.

inspired by the matlab tic/toc command


Typedefs

typedef std::map< std::string,
tictoc_t > 
fovis::TictocMap

Functions

static void fovis::_initializeTictoc ()
static bool fovis::_tictoc_t_alphCompare (const tictoc_t *t1, const tictoc_t *t2)
static bool fovis::_tictoc_t_avgTimeCompare (const tictoc_t *t1, const tictoc_t *t2)
static bool fovis::_tictoc_t_emaTimeCompare (const tictoc_t *t1, const tictoc_t *t2)
static bool fovis::_tictoc_t_maxTimeCompare (const tictoc_t *t1, const tictoc_t *t2)
static bool fovis::_tictoc_t_minTimeCompare (const tictoc_t *t1, const tictoc_t *t2)
static bool fovis::_tictoc_t_totalTimeCompare (const tictoc_t *t1, const tictoc_t *t2)
static int64_t fovis::_timestamp_now ()
int64_t fovis::tictoc (const char *description)
int64_t fovis::tictoc_full (const char *description, double ema_alpha, int64_t *ema)
void fovis::tictoc_get_stats (std::vector< tictoc_t > *stats)
void fovis::tictoc_print_stats (tictoc_sort_type_t sortType)

Variables

static int fovis::_tictoc_enabled = 1
static int fovis::_tictoc_initialized = 0
static TictocMap fovis::_tictoc_map


libfovis
Author(s): Albert Huang, Maurice Fallon
autogenerated on Thu Jun 6 2019 20:16:12