Lines Matching refs:format

112         return "(s={},last={},hits={},cf={},l={},bt={})\n".format(
123 return "{}-{}".format(self.table_id, self.block_type)
125 return "{}".format(self.table_id)
127 return "{}".format(self.block_type)
129 return "{}".format(self.cf_id)
131 return "{}-{}".format(self.cf_id, self.block_type)
133 return "{}-{}-{}".format(self.table_id, self.level, self.block_type)
134 assert False, "Unknown cost class label {}".format(cost_class_label)
147 return "k={},h={},v=[{}]".format(self.key, self.hash, self.value)
193 return "{}".format(all_entries)
362 header_file_path = "{}/header-ml-miss-timeline-{}-{}-{}-{}".format(
369 header += ",{}".format(trace_time)
371 file_path = "{}/data-ml-miss-timeline-{}-{}-{}-{}".format(
375 row = "{}".format(cache_type)
377 row += ",{}".format(self.time_misses.get(trace_time, 0))
385 header_file_path = "{}/header-ml-miss-ratio-timeline-{}-{}-{}-{}".format(
392 header += ",{}".format(trace_time)
394 file_path = "{}/data-ml-miss-ratio-timeline-{}-{}-{}-{}".format(
398 row = "{}".format(cache_type)
406 row += ",{0:.2f}".format(miss_ratio)
436 header_file_path = "{}/header-ml-policy-timeline-{}-{}-{}-{}".format(
443 header += ",{}".format(trace_time)
445 file_path = "{}/data-ml-policy-timeline-{}-{}-{}-{}".format(
451 row = "{}-{}".format(cache_type, policy_name)
453 row += ",{}".format(
465 header_file_path = "{}/header-ml-policy-ratio-timeline-{}-{}-{}-{}".format(
472 header += ",{}".format(trace_time)
474 file_path = "{}/data-ml-policy-ratio-timeline-{}-{}-{}-{}".format(
480 row = "{}-{}".format(cache_type, policy_name)
491 row += ",{0:.2f}".format(ratio)
677 return "b{}".format(trace_record.block_id)
680 return "g{}-{}".format(trace_record.fd, trace_record.key_id)
1042 return "Hybrid ThompsonSampling with cost class {} (ts_hybrid)".format(
1045 return "ThompsonSampling with cost class {} (ts)".format(self.cost_class_label)
1101 return "Hybrid LinUCB with cost class {} (linucb_hybrid)".format(
1104 return "LinUCB with cost class {} (linucb)".format(self.cost_class_label)
1126 return "({} {} {} {})".format(
1256 return "({} {} {} {})".format(
1632 print("Unknown cache type {}".format(cache_type))
1729 "duration of {} seconds. Throughput: {} records/second.".format(
1740 "{6}({7:.2f}%) accesses that want to insert but block size is 0.".format(
1757 print("Running simulated {} cache on block traces.".format(cache.cache_name()))
1826 "Trace miss ratio {}".format(
1836 "{},0,0,{},{},{}".format(
1846 "seconds. Throughput: {} records/second. Trace miss ratio {}".format(
1855 "{},0,0,{},{},{}".format(
1874 cache_label = "{}-{}-{}".format(cache_type, cache_size, target_cf_name)
1875 with open("{}/data-ml-mrc-{}".format(result_dir, cache_label), "w+") as mrc_file:
1877 "{},0,0,{},{},{}\n".format(
1894 "{}/data-ml-avgmb-{}-{}".format(
1900 "{},0,0,{},{}\n".format(cache_type, cache_size, avg_miss_bytes)
1904 "{}/data-ml-p95mb-{}-{}".format(
1910 "{},0,0,{},{}\n".format(cache_type, cache_size, p95_miss_bytes)
1973 print("Arguments: {}".format(sys.argv))