DDD
1.9.0.20240826145154
|
#include <statistic.hpp>
Public Member Functions | |
Statistic (const SDD &s, const std::string &name, OutputType style=LATEX, bool show_peak=true) | |
Create a statistic for the current SDD s, style LATEX by default. More... | |
Statistic (const DDD &s, const std::string &name, OutputType style=LATEX, bool show_peak=true) | |
Create a statistic for the current DDD s, style LATEX by default. More... | |
void | print_header (std::ostream &os) |
Print column headers, using current style. More... | |
void | print_trailer (std::ostream &os, bool withLegend=true) |
Print trailer. More... | |
void | print_line (std::ostream &os) |
Print a line for current statistic. More... | |
void | print_table (std::ostream &os) |
Convenience print a table. More... | |
void | print_legend (std::ostream &os) |
Print a legend to the table. More... | |
void | setStyle (OutputType style) |
Setter for style. More... | |
double | getTime () const |
Accessors. More... | |
long double | getNbStates () const |
Private Member Functions | |
void | load (const SDD &s) |
load from a SDD More... | |
void | load (const DDD &s) |
load from a DDD More... | |
Private Attributes | |
long double | nb_Stat |
number of final states More... | |
long double | DDD_size |
number of final DDD nodes More... | |
long double | SDD_size |
number of final SDD nodes More... | |
long double | DDD_peak_size |
peak DDD unicity table size More... | |
long double | SDD_peak_size |
peak DDD unicity table size More... | |
double | total_time |
total time More... | |
size_t | memory |
resident mem (kb) More... | |
double | nbHom |
Hom final. More... | |
double | nbShom |
SHom final. More... | |
double | ddd_cache |
DDD cache. More... | |
double | sdd_cache |
SDD cache peak. More... | |
bool | isPureDDD |
Mode : include SDD or not. More... | |
OutputType | style |
Mode : outputType. More... | |
std::string | stat_name |
Name of this statistic. More... | |
size_t | shom_cache |
Size of SHom cache. More... | |
bool | show_peak |
show peak More... | |
Statistic::Statistic | ( | const SDD & | s, |
const std::string & | name, | ||
OutputType | style = LATEX , |
||
bool | show_peak = true |
||
) |
Create a statistic for the current SDD s, style LATEX by default.
The statistic is sampled and stored, this call triggers SDD mode (more columns).
s | the SDD used for final node and state count. |
name | the row name (first column) |
style | use LATEX for formatted latex table or CSV to import in excel or gnumeric. |
show_peak | if you want to show peak size instead of current size for caches |
References load().
Statistic::Statistic | ( | const DDD & | s, |
const std::string & | name, | ||
OutputType | style = LATEX , |
||
bool | show_peak = true |
||
) |
Create a statistic for the current DDD s, style LATEX by default.
The statistic is sampled and stored, this call triggers DDD mode (less columns).
s | the DDD used for final node and state count. |
name | the row name (first column) |
style | use LATEX for formatted latex table or CSV to import in excel or gnumeric. |
show_peak | if you want to show peak size instead of current size for caches |
References load().
|
inline |
References nb_Stat.
|
inline |
Accessors.
References total_time.
|
private |
load from a DDD
References ddd_cache, DDD_peak_size, DDD_size, process::getResidentMemory(), process::getTotalTime(), memory, nb_Stat, nbHom, GDDD::nbStates(), GDDD::peak(), DED::peak(), show_peak, GDDD::size(), DED::statistics(), GHom::statistics(), and total_time.
|
private |
load from a SDD
References GShom::cache_size(), ddd_cache, DDD_peak_size, DDD_size, process::getResidentMemory(), process::getTotalTime(), memory, nb_Stat, nbHom, nbShom, GSDD::nbStates(), GSDD::node_size(), GDDD::peak(), DED::peak(), GSDD::peak(), SDED::peak(), sdd_cache, SDD_peak_size, SDD_size, shom_cache, show_peak, DED::statistics(), GHom::statistics(), SDED::statistics(), GShom::statistics(), and total_time.
Referenced by Statistic().
void Statistic::print_header | ( | std::ostream & | os | ) |
void Statistic::print_legend | ( | std::ostream & | os | ) |
void Statistic::print_line | ( | std::ostream & | os | ) |
Print a line for current statistic.
To produce tables call print_header once then print_line for all your statistics.
References ddd_cache, DDD_peak_size, DDD_size, isPureDDD, line_sep, memory, nb_Stat, nbHom, nbShom, sdd_cache, SDD_peak_size, SDD_size, shom_cache, stat_name, style, total_time, and value_sep.
Referenced by print_table().
void Statistic::print_table | ( | std::ostream & | os | ) |
Convenience print a table.
Useful if you have a single stat to show. Calls print_header,print_line,print_trailer in this order.
References print_header(), print_line(), and print_trailer().
void Statistic::print_trailer | ( | std::ostream & | os, |
bool | withLegend = true |
||
) |
Print trailer.
The trailer includes a key to reading the columns. In latex mode it also closes the document.
Referenced by print_table().
void Statistic::setStyle | ( | OutputType | style | ) |
Setter for style.
|
private |
DDD cache.
Referenced by load(), and print_line().
|
private |
peak DDD unicity table size
Referenced by load(), and print_line().
|
private |
number of final DDD nodes
Referenced by load(), and print_line().
|
private |
Mode : include SDD or not.
Referenced by print_header(), print_legend(), and print_line().
|
private |
resident mem (kb)
Referenced by load(), and print_line().
|
private |
number of final states
Referenced by getNbStates(), load(), and print_line().
|
private |
Hom final.
Referenced by load(), and print_line().
|
private |
SHom final.
Referenced by load(), and print_line().
|
private |
SDD cache peak.
Referenced by load(), and print_line().
|
private |
peak DDD unicity table size
Referenced by load(), and print_line().
|
private |
number of final SDD nodes
Referenced by load(), and print_line().
|
private |
Size of SHom cache.
Referenced by load(), and print_line().
|
private |
show peak
Referenced by load(), print_header(), and print_legend().
|
private |
Name of this statistic.
Referenced by print_line().
|
private |
Mode : outputType.
Referenced by print_header(), print_legend(), print_line(), and print_trailer().
|
private |
total time
Referenced by getTime(), load(), and print_line().