Lines Matching refs:now
565 def compare(self, e1, e2, now): argument
566 e1_duration = max(0, (now - e1.value.insertion_time) / kMicrosInSecond) * float(
569 e2_duration = max(0, (now - e2.value.insertion_time) / kMicrosInSecond) * float(
590 now = auxilliary_info[0]
591 return sorted(samples, cmp=lambda e1, e2: self.compare(e1, e2, now))
605 def compare(self, e1, e2, now, cost_classes, cost_class_label): argument
614 e1_density = e1_entry.density(now)
615 e2_density = e2_entry.density(now)
643 now = auxilliary_info[0]
649 e1, e2, now, cost_classes, cost_class_label
869 def avg_lifetime_in_cache(self, now): argument
871 return now / kMicrosInSecond - avg_insertion_time
883 def density(self, now): argument
885 in_cache_duration = now / kMicrosInSecond - avg_insertion_time
1725 now = time.time()
1726 if now - start_time > time_interval * 10:
1730 now - start_time,
1733 access_seq_no / (now - start_time),
1821 now = time.time()
1822 if now - start_time > time_interval * 10:
1827 now - start_time,
1830 access_seq_no / (now - start_time),
1843 now = time.time()
1847 now - start_time,
1850 access_seq_no / (now - start_time),