#include "ns3/core-module.h"#include <cmath>#include <fstream>#include <iomanip>#include <iostream>#include <string.h>#include <vector> Include dependency graph for bench-scheduler.cc:
 Include dependency graph for bench-scheduler.cc:Go to the source code of this file.
| Classes | |
| class | Bench | 
| Benchmark instance which can do a single run.  More... | |
| class | BenchSuite | 
| Benchmark which performs an ensemble of runs.  More... | |
| struct | BenchSuite::PhaseResult | 
| Statistics from a single phase, init or run.  More... | |
| struct | Bench::Result | 
| The output.  More... | |
| struct | BenchSuite::Result | 
| Results from initialization and execution of a single run.  More... | |
| Macros | |
| #define | ACCUMULATE(phase, field) | 
| #define | DEB(x) | 
| Log debugging output. | |
| #define | LOG(x) std::cout << x << std::endl | 
| Log to std::cout. | |
| #define | LOGME(x) LOG(g_me << x) | 
| Log with program name prefix. | |
| Functions | |
| Ptr< RandomVariableStream > | GetRandomStream (std::string filename) | 
| Create a RandomVariableStream to generate next event delays. | |
| Variables | |
| bool | g_debug = false | 
| Flag to write debugging output. | |
| int | g_fwidth = 6 | 
| Output field width for numeric data. | |
| std::string | g_me | 
| Name of this program. | |
| #define ACCUMULATE | ( | phase, | |
| field ) | 
Referenced by BenchSuite::Log().
| #define DEB | ( | x | ) | 
Log debugging output.
Definition at line 30 of file bench-scheduler.cc.
Referenced by BenchSuite::BenchSuite(), Bench::Cb(), and Bench::Run().
| #define LOG | ( | x | ) | std::cout << x << std::endl | 
Log to std::cout.
Definition at line 26 of file bench-scheduler.cc.
Referenced by CreateTap(), GetRandomStream(), BenchSuite::Header(), BenchSuite::Log(), BenchSuite::Result::Log(), ns3::SendSocket(), SetIpv4(), SetIpv6(), SetMacAddress(), and SetUp().
Log with program name prefix.
Definition at line 28 of file bench-scheduler.cc.
| Ptr< RandomVariableStream > GetRandomStream | ( | std::string | filename | ) | 
Create a RandomVariableStream to generate next event delays.
If the filename parameter is empty a default exponential time distribution will be used, with mean delay of 100 ns.
If the filename is - standard input will be used.
| [in] | filename | The delay interval source file name. | 
Definition at line 388 of file bench-scheduler.cc.
References ns3::CreateObject(), and LOG.
 Here is the call graph for this function:
 Here is the call graph for this function:| bool g_debug = false | 
Flag to write debugging output.
Definition at line 21 of file bench-scheduler.cc.
| int g_fwidth = 6 | 
Output field width for numeric data.
Definition at line 37 of file bench-scheduler.cc.
Referenced by BenchSuite::Header(), and BenchSuite::Result::Log().
| std::string g_me | 
Name of this program.
Definition at line 24 of file bench-scheduler.cc.