MOTION
0.01
Framework for mixed-protocol multi-party computation
|
Go to the documentation of this file.
25 #include <boost/accumulators/accumulators.hpp>
26 #include <boost/accumulators/statistics/count.hpp>
27 #include <boost/accumulators/statistics/mean.hpp>
28 #include <boost/accumulators/statistics/median.hpp>
29 #include <boost/accumulators/statistics/stats.hpp>
30 #include <boost/accumulators/statistics/variance.hpp>
31 #include <boost/json.hpp>
37 struct TransportStatistics;
50 boost::accumulators::stats<boost::accumulators::tag::mean, boost::accumulators::tag::median,
51 boost::accumulators::tag::lazy_variance>>;
57 boost::json::object
ToJson()
const;
60 std::size_t count_ = 0;
69 boost::accumulators::stats<boost::accumulators::tag::mean, boost::accumulators::tag::sum>>;
78 void Add(
const std::vector<communication::TransportStatistics>& statistics);
82 boost::json::object
ToJson()
const;
85 std::size_t count_ = 0;
86 std::array<AccumulatorType, 4> accumulators_;
std::pair< TimePoint, TimePoint > TimePointPair
Definition: run_time_statistics.h:35
static constexpr std::size_t kIdxNumberOfMessagesSent
Definition: analysis.h:71
std::chrono::steady_clock ClockType
Definition: analysis.h:45
void Add(const communication::TransportStatistics &statistics)
Definition: analysis.cpp:125
std::size_t number_of_messages_sent
Definition: transport.h:33
static constexpr std::size_t kIdxNumberOfMessagesReceived
Definition: analysis.h:72
static constexpr std::size_t kIdxNumberOfBytesSent
Definition: analysis.h:73
Definition: analysis.h:43
std::string GetUsername()
Definition: runtime_info.cpp:90
std::string PrintHumanReadable() const
Definition: analysis.cpp:72
boost::json::object ToJson() const
Definition: analysis.cpp:102
static std::string FormatLine(std::string name, std::string unit, AccumulatedRunTimeStatistics::AccumulatorType accumulator, std::size_t field_width)
Definition: analysis.cpp:58
static C::value_type At(const C &container, RunTimeStatistics::StatisticsId id)
Definition: analysis.cpp:52
std::size_t number_of_messages_received
Definition: transport.h:34
static constexpr std::size_t kIdxNumberOfBytesReceived
Definition: analysis.h:74
std::string GetHostname()
Definition: runtime_info.cpp:75
const char * GetGitVersion()
std::string GetCmdLine()
Definition: runtime_info.cpp:46
Definition: algorithm_description.cpp:35
std::milli Resolution
Definition: analysis.h:47
static double ComputeDuration(const RunTimeStatistics::TimePointPair &tpp)
Definition: analysis.cpp:37
boost::accumulators::accumulator_set< std::size_t, boost::accumulators::stats< boost::accumulators::tag::mean, boost::accumulators::tag::sum > > AccumulatorType
Definition: analysis.h:69
std::size_t number_of_bytes_received
Definition: transport.h:36
Definition: run_time_statistics.h:32
const char * GetGitBranch()
std::string PrintMotionInfo()
Definition: analysis.cpp:168
std::string PrintStatistics(const std::string &experiment_name, const AccumulatedRunTimeStatistics &execution_statistics, const AccumulatedCommunicationStatistics &communication_statistics)
Definition: analysis.cpp:176
boost::json::object ToJson() const
Definition: analysis.cpp:156
std::string PrintHumanReadable() const
Definition: analysis.cpp:140
std::size_t GetPid()
Definition: runtime_info.cpp:63
StatisticsId
Definition: run_time_statistics.h:37
static const fe d
Definition: mycurve25519_tables.h:30
Definition: transport.h:32
std::array< TimePointPair, static_cast< std::size_t >StatisticsId::kMax)+1 > data
Definition: run_time_statistics.h:71
ClockType::duration Duration
Definition: analysis.h:46
boost::accumulators::accumulator_set< double, boost::accumulators::stats< boost::accumulators::tag::mean, boost::accumulators::tag::median, boost::accumulators::tag::lazy_variance > > AccumulatorType
Definition: analysis.h:51
std::size_t number_of_bytes_sent
Definition: transport.h:35
Definition: analysis.h:65
T sqrt(size_t k, T a)
Definition: sb_impl.h:43
void Add(const RunTimeStatistics &statistics)
Definition: analysis.cpp:43