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

Method turn_on_stream_dump

libCacheSim/traceAnalyzer/size.cpp:73–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73void SizeDistribution::turn_on_stream_dump(string &path_base) {
74 ofs_stream_req.open(
75 path_base + ".sizeWindow_w" + to_string(time_window_) + "_req",
76 ios::out | ios::trunc);
77 ofs_stream_req << "# " << path_base << "\n";
78 ofs_stream_req << "# object_size: req_cnt (time window " << time_window_
79 << ", log_base " << LOG_BASE << ", size_base " << 1 << ")\n";
80
81 ofs_stream_obj.open(
82 path_base + ".sizeWindow_w" + to_string(time_window_) + "_obj",
83 ios::out | ios::trunc);
84 ofs_stream_obj << "# " << path_base << "\n";
85 ofs_stream_obj << "# object_size: obj_cnt (time window " << time_window_
86 << ", log_base " << LOG_BASE << ", size_base " << 1 << ")\n";
87}
88
89void SizeDistribution::stream_dump() {
90 for (const auto &p : window_obj_size_req_cnt_) {

Callers

nothing calls this directly

Calls 1

to_stringFunction · 0.85

Tested by

no test coverage detected