Add ssd profiler for tuning SSD write performance
The write strategy for logging images is quite sensitive to the
configuration of the filesystem and how we write to it. Rather than
trying to debug that through the logger, this tool provides a simpler
way of profiling different settings.
Change-Id: Ia2555a4bfcc052b3e84a99d60cb044563bd76aba
Signed-off-by: Austin Schuh <austin.linux@gmail.com>
diff --git a/y2023/BUILD b/y2023/BUILD
index 0c34ce8..3a5f1bd 100644
--- a/y2023/BUILD
+++ b/y2023/BUILD
@@ -266,3 +266,15 @@
],
target_compatible_with = ["@platforms//os:linux"],
)
+
+cc_binary(
+ name = "ssd_profiler",
+ srcs = [
+ "ssd_profiler.cc",
+ ],
+ deps = [
+ "//aos:init",
+ "//aos/time",
+ "@com_github_google_glog//:glog",
+ ],
+)