Agora
1.2.0
Agora project
|
Go to the documentation of this file.
112 size_t reference_tsc)
const {
121 size_t frame_id)
const {
130 size_t frame_id)
const {
139 size_t frame_id_2)
const {
148 size_t frame_id_2)
const {
156 size_t symbol_id,
size_t sub_count)
const;
158 size_t ant_or_sc_id,
size_t task_count)
const;
164 .duration_stat_[
static_cast<size_t>(doer_type)];
172 .duration_stat_[
static_cast<size_t>(doer_type)];
188 size_t thread_num,
size_t break_down_num);
191 static std::string
PrintPerFrame(std::string
const& doer_string,
double MasterGetDeltaUs(TsType timestamp_type_1, TsType timestamp_type_2, size_t frame_id) const
Definition: stats.h:129
size_t NumPilotSyms() const
Definition: framestats.cc:91
size_t count_all_threads_
Definition: stats.h:34
static constexpr bool kStatsPrintFrameSummary
Definition: symbols.h:195
size_t SocketThreadNum() const
Definition: config.h:182
static const std::string kProjectDir
Definition: stats.cc:12
void MasterSetTsc(TsType timestamp_type, size_t frame_id)
Definition: stats.h:81
Table< size_t > & FrameStart()
Definition: stats.h:179
thread_id_t thread_id()
Definition: concurrentqueue.h:157
size_t UeAntNum() const
Definition: config.h:41
void Calloc(size_t dim1, size_t dim2, Agora_memory::Alignment_t alignment)
Definition: memory_manage.h:45
void Reset()
Definition: stats.h:26
PrintType
Definition: symbols.h:96
auto printf(const S &fmt, const T &... args) -> int
Definition: printf.h:631
const size_t beam_thread_num_
Definition: stats.h:200
std::array< std::array< std::array< double, kNumStatsFrames >, kMaxStatBreakdown >, kNumDoerTypes > doer_breakdown_us_
Definition: stats.h:226
const double freq_ghz_
Definition: stats.h:204
static constexpr bool kDebugPrintStatsPerThread
Definition: symbols.h:200
const size_t task_thread_num_
Definition: stats.h:198
void SaveToFile()
Definition: stats.cc:151
std::array< std::array< double, kNumStatsFrames >, kNumDoerTypes > doer_us_
Definition: stats.h:223
std::array< DurationStat, kNumDoerTypes > duration_stat_
Definition: stats.h:216
std::array< size_t, kMaxStatBreakdown > task_duration_
Definition: stats.h:23
Table< size_t > frame_start_
Definition: stats.h:233
std::array< std::array< double, kNumStatsFrames >, kNumTimestampTypes > master_timestamps_
Definition: stats.h:210
std::array< TimeDurationsStats, kMaxThreads > worker_durations_old_
Definition: stats.h:221
size_t BsAntNum() const
Definition: config.h:35
const Config *const config_
Definition: stats.h:196
#define AGORA_LOG_ERROR(...)
Definition: logger.h:39
#define TOSTRING(x)
Definition: symbols.h:14
const FrameStats & Frame() const
Definition: config.h:340
const size_t creation_tsc_
Definition: stats.h:205
static double CyclesToUs(size_t cycles, double freq_ghz)
Definition: gettime.h:97
size_t last_frame_id_
Definition: stats.h:228
Definition: receiver.h:27
const size_t break_down_num_
Definition: stats.h:203
std::array< TimeDurationsStats, kMaxThreads > worker_durations_
Definition: stats.h:220
void PrintPerFrameDone(PrintType print_type, size_t frame_id) const
Definition: stats.cc:453
static std::string PrintPerFrame(std::string const &doer_string, FrameSummary const &frame_summary)
Definition: stats.cc:77
static constexpr size_t kMaxStatBreakdown
Definition: stats.h:19
std::array< double, kMaxStatBreakdown > us_avg_threads_
Definition: stats.h:33
size_t OfdmDataNum() const
Definition: config.h:47
size_t MasterGetTsc(TsType timestamp_type, size_t frame_id) const
Definition: stats.h:88
double MasterGetDeltaUs(TsType timestamp_type, size_t frame_id_1, size_t frame_id_2) const
Definition: stats.h:147
Declaration file for the Stats class. Includes definations for DurationStat and FrameSummery types.
size_t GetTotalTaskCount(DoerType doer_type, size_t thread_num)
Definition: stats.cc:340
static const std::string kStatsDataFilename
Definition: stats.cc:15
double MasterGetDeltaMs(TsType timestamp_type, size_t frame_id_1, size_t frame_id_2) const
Definition: stats.h:138
static const std::map< DoerType, std::string > kDoerNames
Definition: symbols.h:85
size_t task_count_
Definition: stats.h:24
double MasterGetMsSince(TsType timestamp_type, size_t frame_id) const
Definition: stats.h:95
Stats(const Config *const cfg)
Definition: stats.cc:20
Self defined functions for message storage and passing.
void Free()
Definition: memory_manage.h:84
std::string Beamforming() const
Definition: config.h:109
for i
Definition: generate_data.m:107
Plot Rx waveform for u
Definition: inspect_single_frame.m:108
static size_t Rdtsc()
Return the TSC.
Definition: gettime.h:25
static void PrintPerThreadPerTask(std::string const &doer_string, FrameSummary const &s)
Definition: stats.cc:60
auto fprintf(std::FILE *f, const S &fmt, const T &... args) -> int
Definition: printf.h:607
static constexpr size_t kNumTimestampTypes
Definition: stats.h:60
FrameSummary()
Definition: stats.h:35
void PrintSummary()
If worker stats collection is enabled, prsize_t a summary of stats.
Definition: stats.cc:348
static void ComputeAvgOverThreads(FrameSummary *frame_summary, size_t thread_num, size_t break_down_num)
Definition: stats.cc:52
static constexpr size_t kNumStatsFrames
Definition: symbols.h:300
std::array< uint8_t, 64 > false_sharing_padding_
Definition: stats.h:217
size_t LastFrameId() const
Definition: stats.h:175
void PrintPerSymbolDone(PrintType print_type, size_t frame_id, size_t symbol_id, size_t sub_count) const
Definition: stats.cc:549
const LDPCconfig & LdpcConfig(Direction dir) const
Definition: config.h:280
static constexpr bool kIsWorkerTimingEnabled
Definition: symbols.h:303
size_t NumDLSyms() const
Definition: framestats.cc:83
size_t BeamEventsPerSymbol() const
Definition: config.h:202
size_t NumULSyms() const
Definition: framestats.cc:85
static double CyclesToMs(size_t cycles, double freq_ghz)
Definition: gettime.h:91
#define AGORA_LOG_INFO(...)
Definition: logger.h:62
void UpdateStats(size_t frame_id)
Definition: stats.cc:96
void PrintPerTaskDone(PrintType print_type, size_t frame_id, size_t symbol_id, size_t ant_or_sc_id, size_t task_count) const
Definition: stats.cc:623
static void RtAssert(bool condition, const char *throw_str)
Definition: utils.h:104
static constexpr bool kDebugPrintPerSymbolDone
Definition: symbols.h:198
Declaration file for the receiver class.
TsType
Definition: stats.h:40
static const std::string kStatsDetailedDataFilename
Definition: stats.cc:17
static constexpr size_t kNumDoerTypes
Definition: symbols.h:83
std::string to_string() const
Definition: eth_common.h:64
double MasterGetDeltaMs(TsType timestamp_type_1, TsType timestamp_type_2, size_t frame_id) const
Definition: stats.h:120
double MasterGetUsSince(TsType timestamp_type, size_t frame_id) const
Definition: stats.h:103
Declaration file for the configuration class which importants json configuration values into class va...
const size_t demul_thread_num_
Definition: stats.h:201
~Stats()
Definition: stats.cc:33
static const std::string kStatsOutputFilePath
Definition: stats.cc:13
double MasterGetUsFromRef(TsType timestamp_type, size_t frame_id, size_t reference_tsc) const
Definition: stats.h:111
DurationStat()
Definition: stats.h:25
std::array< double, kMaxStatBreakdown > us_this_thread_
Definition: stats.h:31
void NumBlocksInSymbol(size_t num_blocks)
Definition: ldpc_config.h:41
DurationStat * GetDurationStatOld(DoerType doer_type, size_t thread_id)
Definition: stats.h:170
const size_t decode_thread_num_
Definition: stats.h:202
static constexpr bool kDebugPrintPerFrameDone
Definition: symbols.h:196
const size_t fft_thread_num_
Definition: stats.h:199
int main(int argc, char const *argv[])
Definition: receiver_cli.cc:7
DoerType
Definition: symbols.h:67
size_t count_this_thread_
Definition: stats.h:32
void PopulateSummary(FrameSummary *frame_summary, size_t thread_id, DoerType doer_type)
Definition: stats.cc:35
DurationStat * GetDurationStat(DoerType doer_type, size_t thread_id)
Definition: stats.h:162
static constexpr bool kDebugPrintPerTaskDone
Definition: symbols.h:199
static constexpr std::array< DoerType,(static_cast< size_t >DoerType::kRC)+1)> kAllDoerTypes
Definition: symbols.h:80