-
Notifications
You must be signed in to change notification settings - Fork 1
/
OutputDisplayer.h
43 lines (38 loc) · 1.36 KB
/
OutputDisplayer.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#ifndef OUTPUT_DISP_H
#define OUTPUT_DISP_H
#include <vector>
#include "TraceStats.h"
#include "MemoryOptions.h"
#include "HardwareStats.h"
#include "ReferenceStats.h"
///<summary>
/// display stuff
///</summary>
class OutputDisplayer {
private:
MemoryOptions configOutput; // information about configuration
HardwareStats TLBOutput; // information on hit, miss, rate for TLB
HardwareStats PTOutput; // information on hit, miss, rate for PT
HardwareStats DCOutput; // information on hit, miss, rate for DC
ReferenceStats miscOutput; // what we touched
int reads; // number of reads
int writes; // number of writes
double rwRatio; // read-to-write ratio
std::string policyStr = "";
public:
OutputDisplayer(/* args */);
~OutputDisplayer();
void FeedConfigOutput(MemoryOptions mem);
void FeedTLBStats(HardwareStats stats);
void FeedPTStats(HardwareStats stats);
void FeedDCStats(HardwareStats stats);
void FeedReferenceOutput(ReferenceStats stats);
void DisplayConfig();
void DisplayTraceHeader();
void DisplayTraceLine(TraceStats line);
void DisplayComponentStats();
void DisplayReferenceStats();
void FeedReadWriteInfo(int numReads, int numWrites);
void DisplayReadWriteInfo();
};
#endif //OUTPUT_DISP_H