MCPcopy Create free account
hub / github.com/1a1a11a/libCacheSim / turn_on_stream_dump

Method turn_on_stream_dump

libCacheSim/traceAnalyzer/reuse.cpp:92–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92void ReuseDistribution::turn_on_stream_dump(string &path_base) {
93 stream_dump_rt_ofs.open(
94 path_base + ".reuseWindow_w" + to_string(time_window_) + "_rt",
95 ios::out | ios::trunc);
96 stream_dump_rt_ofs << "# " << path_base << "\n";
97 stream_dump_rt_ofs
98 << "# reuse real time distribution per window (time granularity ";
99 stream_dump_rt_ofs << rtime_granularity_ << ", time window " << time_window_
100 << ")\n";
101
102 stream_dump_vt_ofs.open(
103 path_base + ".reuseWindow_w" + to_string(time_window_) + "_vt",
104 ios::out | ios::trunc);
105 stream_dump_vt_ofs << "# " << path_base << "\n";
106 stream_dump_vt_ofs
107 << "# reuse virtual time distribution per window (log base " << log_base_;
108 stream_dump_vt_ofs << ", time window " << time_window_ << ")\n";
109}
110
111void ReuseDistribution::stream_dump_window_reuse_distribution() {
112 for (const auto &p : window_reuse_rtime_req_cnt_) {

Callers

nothing calls this directly

Calls 1

to_stringFunction · 0.85

Tested by

no test coverage detected