26 #include <boost/thread/mutex.hpp> 33 typedef boost::posix_time::time_duration
duration;
34 typedef boost::posix_time::ptime
ptime;
59 for(
int i = 0; i < Component::Size; i++) {
77 void start(shared_ptr<Statistic::JobMeasurement>& job,
Component component)
const;
78 void stop(shared_ptr<Statistic::JobMeasurement>& job,
Component component)
const;
79 void finished(shared_ptr<Statistic::JobMeasurement>& job);
83 static const shared_ptr<Statistic>&
Get()
89 static void Init(
const shared_ptr<Configuration>& conf)
103 static shared_ptr<Statistic>
instance;
shared_ptr< Configuration > config
string componentToName(Component component) const
void stop(shared_ptr< Statistic::JobMeasurement > &job, Component component) const
shared_ptr< JobMeasurement > startNewMeasurement(const string &stylesheet, int zoom)
void setStats(shared_ptr< Statistic::JobMeasurement > &job, unsigned int nodes, unsigned int ways, unsigned int relations)
boost::posix_time::time_duration duration
void start(shared_ptr< Statistic::JobMeasurement > &job, Component component) const
boost::posix_time::ptime ptime
void finished(shared_ptr< Statistic::JobMeasurement > &job)
std::vector< shared_ptr< JobMeasurement > > measurementsBuffer
ptime stopTime[Component::Size]
ptime startTime[Component::Size]
AvgMeasurement componentAvgs[Component::Size]
static shared_ptr< Statistic > instance
This file is part of alaCarte.
static const shared_ptr< Statistic > & Get()
void writeToFile(const char *filename)
JobMeasurement(const string &stylesheet, int zoom)
Represents a set of options accessible via strings.
static void Init(const shared_ptr< Configuration > &conf)
Statistic(const Statistic &)
duration getDuration(int i)
void printStatistic() const
bool stopped[Component::Size]