#include <stdio.h>#include <string.h>#include <vector>#include <math.h>#include <assert.h>#include <iostream>#include "wmp_config.h"#include "core/include/frames.h"#include "bridge.hh"#include "core/interface/Msg.h"#include "window2.hh"#include "statistics.h"#include "basic_io.h"#include "stats.h"#include "graphs.h"#include <map>#include "Stats.h"#include "Plotter.h"
Go to the source code of this file.
Functions | |
| int | hf (int key) |
| bool | last_pap_jump (wmpFrame *p) |
| bool | new_token (wmpFrame *p) |
| template<class T > | |
| void | publish (MaxMinCStats< T > mms, int precision=0, int uid=-1) |
| template<class T > | |
| void | publish (IntervalCStats< T > mms, int precision=0) |
| template<class T > | |
| void | publish (DoubleListCStats< T > lcs, int precision=0) |
| template<class T > | |
| void | publish (ListCStats< T > lcs, int precision=0) |
| template<class T > | |
| void | publish (PlainCStats< T > pcs, int precision=0) |
| template<class T , class P > | |
| void | publish (ThingOverTimeCStats< T, P > tot, int precision=0) |
| bool | stat_ask_plotter (int i) |
| void | stat_plot_hist (int i, int nbins, double zoom) |
| void | stat_plot_tg (int i) |
| void | stat_write_to_file (int i) |
| int | statistics_from_file (char *filename, int &begin, int &end) |
| void | statistics_get_fez (int &min, int &max) |
| void | statistics_init () |
| void | statistics_init_flows () |
| void | statistics_new_frame (wmpFrame *p, long long ptime, int pos, int bytes, simData_Hdr *sdh) |
| void | statistics_publish (window2 *w) |
Variables | |
| PlainCStats< int > | auths ("Authorizations","") |
| MaxMinCStats< long long > | bc_loop ("BC Loop duration","us") |
| std::map< unsigned int, long long > | bc_map |
| ListCStats< int > | drops ("Drops","Drop Serial") |
| IntervalCStats< int > | efz ("Max Error Free Zone","Frames") |
| ListCStats< int > | ett ("ETT","Extra time (ms) ") |
| bool | first = false |
| bool | first_frame = true |
| long long | first_time |
| std::map< int, StatsFlow * > | flows |
| static bool | flows_initied = false |
| ListCStats< int > | foreign ("Foreign Frames","Id") |
| static int | from |
| ListCStats< int > | incongruent ("Incongruent Cases","Id") |
| MaxMinCStats< long long > | inter_auth ("Inter-Auth","us") |
| MaxMinCStats< long long > | inter_fore ("Inter-Foreign","us") |
| MaxMinCStats< long long > | inter_message ("Inter-Message","us") |
| MaxMinCStats< long long > | inter_token ("Inter-Token","us") |
| char | last_frame [2500] |
| int | last_pos = 0 |
| long long | last_ptime = 0 |
| static int | lastForeignTime = 0 |
| long long | lastIat |
| MaxMinCStats< long long > | loop_length ("Loop length","hops") |
| MaxMinCStats< long long > | loops ("LOOP Duration","us") |
| IntervalCStats< int > | mmz ("Max Message Zone","Frames") |
| PlainCStats< int > | msgs ("Messages","") |
| ListCStats< int > | ncs ("Not Consecutive Serial","Id") |
| static int | nnodes = 0 |
| unsigned long long | old_qosPh_serial = 0 |
| FILE * | outf |
| MaxMinCStats< long long > | paps ("PAP Duration","us") |
| Plotter< MaxMinCStats< long long >, long long > | plotter |
| ListCStats< int > | plrx ("Possibly Lost in RX","Serial") |
| ListCStats< long long > | qos_stops ("Messages Stop","Serial") |
| ListCStats< long long > | reinserted ("Reinserted","Serial") |
| ListCStats< long long > | retries ("Retries","Serial") |
| ListCStats< long long > | stops ("Stops","ms") |
| PlainCStats< long long > | th_bc_wc ("Calculated WC BC Loop","us") |
| PlainCStats< long long > | th_wc ("Calculated WC Loop","us") |
| ThingOverTimeCStats< long long, int > | timespan ("Interval","us") |
| PlainCStats< int > | tkns ("Tokens","") |
| static int | to |
| int | total_frames = 0 |
| static window2 * | w2 |
| MaxMinCStats< long long > | wc_loops ("WC LOOP Duration","us") |
| int hf | ( | int | key | ) |
Definition at line 187 of file statistics.cc.
| bool last_pap_jump | ( | wmpFrame * | p | ) |
Definition at line 240 of file statistics.cc.
| bool new_token | ( | wmpFrame * | p | ) |
Definition at line 263 of file statistics.cc.
| void publish | ( | MaxMinCStats< T > | mms, |
| int | precision = 0, |
||
| int | uid = -1 |
||
| ) |
Definition at line 408 of file statistics.cc.
| void publish | ( | IntervalCStats< T > | mms, |
| int | precision = 0 |
||
| ) |
Definition at line 426 of file statistics.cc.
| void publish | ( | DoubleListCStats< T > | lcs, |
| int | precision = 0 |
||
| ) |
Definition at line 439 of file statistics.cc.
| void publish | ( | ListCStats< T > | lcs, |
| int | precision = 0 |
||
| ) |
Definition at line 456 of file statistics.cc.
| void publish | ( | PlainCStats< T > | pcs, |
| int | precision = 0 |
||
| ) |
Definition at line 468 of file statistics.cc.
| void publish | ( | ThingOverTimeCStats< T, P > | tot, |
| int | precision = 0 |
||
| ) |
Definition at line 473 of file statistics.cc.
| bool stat_ask_plotter | ( | int | i | ) |
Definition at line 651 of file statistics.cc.
| void stat_plot_hist | ( | int | i, |
| int | nbins, | ||
| double | zoom | ||
| ) |
Definition at line 482 of file statistics.cc.
| void stat_plot_tg | ( | int | i | ) |
Definition at line 476 of file statistics.cc.
| void stat_write_to_file | ( | int | i | ) |
Definition at line 479 of file statistics.cc.
| int statistics_from_file | ( | char * | filename, |
| int & | begin, | ||
| int & | end | ||
| ) |
Definition at line 133 of file statistics.cc.
| void statistics_get_fez | ( | int & | min, |
| int & | max | ||
| ) |
Definition at line 178 of file statistics.cc.
| void statistics_init | ( | ) |
Definition at line 198 of file statistics.cc.
| void statistics_init_flows | ( | ) |
Definition at line 112 of file statistics.cc.
| void statistics_new_frame | ( | wmpFrame * | p, |
| long long | ptime, | ||
| int | pos, | ||
| int | bytes, | ||
| simData_Hdr * | sdh | ||
| ) |
Definition at line 267 of file statistics.cc.
| void statistics_publish | ( | window2 * | w | ) |
Definition at line 486 of file statistics.cc.
| PlainCStats<int> auths("Authorizations","") |
| MaxMinCStats<long long> bc_loop("BC Loop duration","us") |
| std::map<unsigned int, long long> bc_map |
Definition at line 95 of file statistics.cc.
| ListCStats<int> drops("Drops","Drop Serial") |
| IntervalCStats<int> efz("Max Error Free Zone","Frames") |
| ListCStats<int> ett("ETT","Extra time (ms) ") |
| bool first = false |
Definition at line 98 of file statistics.cc.
| bool first_frame = true |
Definition at line 101 of file statistics.cc.
| long long first_time |
Definition at line 96 of file statistics.cc.
Definition at line 93 of file statistics.cc.
bool flows_initied = false [static] |
Definition at line 110 of file statistics.cc.
| ListCStats<int> foreign("Foreign Frames","Id") |
int from [static] |
Definition at line 104 of file statistics.cc.
| ListCStats<int> incongruent("Incongruent Cases","Id") |
| MaxMinCStats<long long> inter_auth("Inter-Auth","us") |
| MaxMinCStats<long long> inter_fore("Inter-Foreign","us") |
| MaxMinCStats<long long> inter_message("Inter-Message","us") |
| MaxMinCStats<long long> inter_token("Inter-Token","us") |
| char last_frame[2500] |
Definition at line 99 of file statistics.cc.
| int last_pos = 0 |
Definition at line 97 of file statistics.cc.
| long long last_ptime = 0 |
Definition at line 96 of file statistics.cc.
int lastForeignTime = 0 [static] |
Definition at line 106 of file statistics.cc.
| long long lastIat |
Definition at line 107 of file statistics.cc.
| MaxMinCStats<long long> loop_length("Loop length","hops") |
| MaxMinCStats<long long> loops("LOOP Duration","us") |
| IntervalCStats<int> mmz("Max Message Zone","Frames") |
| PlainCStats<int> msgs("Messages","") |
| ListCStats<int> ncs("Not Consecutive Serial","Id") |
int nnodes = 0 [static] |
Definition at line 104 of file statistics.cc.
| unsigned long long old_qosPh_serial = 0 |
Definition at line 108 of file statistics.cc.
| FILE* outf |
Definition at line 109 of file statistics.cc.
| MaxMinCStats<long long> paps("PAP Duration","us") |
| Plotter< MaxMinCStats<long long>, long long > plotter |
Definition at line 91 of file statistics.cc.
| ListCStats<int> plrx("Possibly Lost in RX","Serial") |
| ListCStats<long long> qos_stops("Messages Stop","Serial") |
| ListCStats<long long> reinserted("Reinserted","Serial") |
| ListCStats<long long> retries("Retries","Serial") |
| ListCStats<long long> stops("Stops","ms") |
| PlainCStats<long long> th_bc_wc("Calculated WC BC Loop","us") |
| PlainCStats<long long> th_wc("Calculated WC Loop","us") |
| ThingOverTimeCStats<long long, int> timespan("Interval","us") |
| PlainCStats<int> tkns("Tokens","") |
int to [static] |
Definition at line 104 of file statistics.cc.
| int total_frames = 0 |
Definition at line 100 of file statistics.cc.
window2* w2 [static] |
Definition at line 105 of file statistics.cc.
| MaxMinCStats<long long> wc_loops("WC LOOP Duration","us") |