-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcache_sim.h
More file actions
28 lines (19 loc) · 895 Bytes
/
cache_sim.h
File metadata and controls
28 lines (19 loc) · 895 Bytes
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
//
// Created by theuema on 11/15/17.
//
#ifndef CACHE_SIM_H
#define CACHE_SIM_H
extern "C" {
#include "cache_controller.h"
}
bool ReadFromFile(std::vector<size_t> &addr_trace, const char *filename);
void PrintSimpleLog(MemCache *cache, vector<size_t> &addr_trace, const string &prefix, const string &time,
bool file_write_enabled);
void RecordAccessTimeL1Memory(MemCache *cache, vector<double> &access_t, int64_t &last_hit_count,
int64_t &last_miss_count);
void RecordAccessTimeCacheHierachy(MemCache *cache, vector<double> &access_t, int64_t &last_hit_count,
int64_t &last_miss_count);
void WriteAccessTimeToFile(vector<double> &mean, const string &prefix, const string &time);
string createFileOutputString(const string &prefix, const string &time);
string createTimeString();
#endif //CACHE_SIM_H