|
CohereSim: A Bus-based Cache Simulator
v3.3
A tool for education in computing - learn about coherence protocols, replacement policies, and SMP vs DSM
|
Implementation of the three modes of operation: Single Metrics, Batch Metrics, and Interactive. More...
#include <barrier>#include <csignal>#include <fstream>#include <mutex>#include <thread>#include "main.h"#include "memory_system.h"#include "interactive_mode_coherence.h"#include "interactive_mode_replacer.h"
Macros | |
| #define | N_TRACE_BUF 1000000 |
| The number of traces to buffer at a time. | |
Functions | |
| void | runBatchMetrics (int argc, char *argv[]) |
| Run the program in batch mode. More... | |
| void | runSingleMetrics (int argc, char *argv[]) |
| Process a trace file from a single config run (config from cmd args) More... | |
| void | runInteractiveMode (char *name_of_showcased) |
| Run the program in interactive mode (aka interactive mode) More... | |
Implementation of the three modes of operation: Single Metrics, Batch Metrics, and Interactive.
| void runBatchMetrics | ( | int | argc, |
| char * | argv[] | ||
| ) |
Run the program in batch mode.
| argc | The number of command line arguments |
| argv | An array to the command line arguments |
| void runInteractiveMode | ( | char * | name_of_showcased | ) |
Run the program in interactive mode (aka interactive mode)
| name_of_showcased | The selected policy/protocol |
| void runSingleMetrics | ( | int | argc, |
| char * | argv[] | ||
| ) |
Process a trace file from a single config run (config from cmd args)
| argc | The number of program arguments |
| argv | The array of program arguments |