You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"""Returns True iff accesses to metric fields in the given file should cause the metric be considered 'used in production code'. Excludes, for example, files in which the metrics are defined, where accesses happen as part of copy constructors, etc."""
586
+
path=filepath.lower()
587
+
return (
588
+
"/test/"inpath
589
+
or"/tests/"inpath
590
+
orpath.endswith("_test.rs")
591
+
or"test_"inpath
592
+
or"tests.rs"inpath
593
+
or ("metrics.rs"inpathand"vmm"inpath)
594
+
)
595
+
596
+
597
+
KNOWN_FALSE_POSITIVES= [
598
+
"min_us",
599
+
"max_us",
600
+
"sum_us",
601
+
"process_startup_time_us",
602
+
"process_startup_time_cpu_us",
603
+
]
604
+
605
+
606
+
defis_metric_used(field, field_type):
607
+
"""Returns True iff the given metric has a production use in the firecracker codebase"""
0 commit comments