Cambridge SMT System
ucam::fsttools::SpeedStatsData Struct Reference

#include <data.stats.hpp>

Public Member Functions

void setTimeStart (const std::string &key)
 Store absolute timing value last thing, just before executing. More...
 
void setTimeEnd (const std::string &key)
 Store absolute timing value right after an execution. More...
 
void write (std::ostream &o)
 Dumps time measurements as a list of pairs key1:time1 key2:time2 ... Each key is expected to be semantically related to the function(s). Time in ms. More...
 

Public Attributes

unordered_map< std::string, std::vector< timeb > > time1
 Stores absolute time for a key prior to executing function. More...
 
unordered_map< std::string, std::vector< timeb > > time2
 Stores absolute time for a key after executing function. More...
 

Detailed Description

Definition at line 26 of file data.stats.hpp.

Member Function Documentation

void ucam::fsttools::SpeedStatsData::setTimeEnd ( const std::string &  key)
inline

Store absolute timing value right after an execution.

Definition at line 39 of file data.stats.hpp.

Here is the caller graph for this function:

void ucam::fsttools::SpeedStatsData::setTimeStart ( const std::string &  key)
inline

Store absolute timing value last thing, just before executing.

Definition at line 33 of file data.stats.hpp.

Here is the caller graph for this function:

void ucam::fsttools::SpeedStatsData::write ( std::ostream &  o)
inline

Dumps time measurements as a list of pairs key1:time1 key2:time2 ... Each key is expected to be semantically related to the function(s). Time in ms.

Parameters
oFile or pipe to dump timings

Definition at line 53 of file data.stats.hpp.

Here is the caller graph for this function:

Member Data Documentation

unordered_map<std::string, std::vector<timeb> > ucam::fsttools::SpeedStatsData::time1

Stores absolute time for a key prior to executing function.

Definition at line 28 of file data.stats.hpp.

unordered_map<std::string, std::vector<timeb> > ucam::fsttools::SpeedStatsData::time2

Stores absolute time for a key after executing function.

Definition at line 30 of file data.stats.hpp.


The documentation for this struct was generated from the following file: