-
Notifications
You must be signed in to change notification settings - Fork 0
/
Metrics.h
35 lines (26 loc) · 1.01 KB
/
Metrics.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
/*
============================================================================
Name : Metrics.h
Author : Jesse Bannon
Class : TCSS 372 - Computer Architecture
School : University of Washington Tacoma
Copyright : Use only for educational purposes and do not modify file.
Description : Handles all metrics recorded during execution of the cache.
============================================================================
*/
#ifndef METRICS_H_
#define METRICS_H_
#include "AddressTrace.h"
/*
============================================================================
Function prototypes (and descriptions)
============================================================================
*/
void printMetrics();
/* Prints all current metrics to console. */
void instructionMetrics();
void traceMetrics(INST_TYPE type);
void latencyMetrics(CACHE cache, INST_TYPE type);
void hitMetrics(CACHE cacheHit, INST_TYPE inst_type, ADDR_TYPE addr_type);
void mesiMetrics(MESI prev, MESI curr);
#endif