@@ -659,21 +659,20 @@ cc_library(
659659 ":comms" ,
660660 ":fork_client" ,
661661 ":forkserver_cc_proto" ,
662+ ":latency_stop_watch" ,
662663 ":mounts" ,
663664 ":namespace" ,
664665 ":policy" ,
665666 ":sanitizer" ,
667+ ":setup_latency_breakdown" ,
666668 ":syscall" ,
667669 ":util" ,
668- ":version" ,
669670 "//sandboxed_api/sandbox2/util:bpf_helper" ,
670671 "//sandboxed_api/util:fileops" ,
671672 "//sandboxed_api/util:raw_logging" ,
672673 "@abseil-cpp//absl/base:core_headers" ,
673674 "@abseil-cpp//absl/container:flat_hash_map" ,
674- "@abseil-cpp//absl/container:flat_hash_set" ,
675675 "@abseil-cpp//absl/status" ,
676- "@abseil-cpp//absl/status:statusor" ,
677676 "@abseil-cpp//absl/strings" ,
678677 "@libcap" ,
679678 ],
@@ -689,7 +688,9 @@ cc_library(
689688 ":fork_client" ,
690689 ":forkedprocess" ,
691690 ":forkserver_cc_proto" ,
691+ ":latency_stop_watch" ,
692692 ":namespace" ,
693+ ":setup_latency_breakdown" ,
693694 ":util" ,
694695 "//sandboxed_api/util:fileops" ,
695696 "//sandboxed_api/util:raw_logging" ,
@@ -711,10 +712,12 @@ cc_library(
711712 visibility = ["//visibility:public" ],
712713 deps = [
713714 ":comms" ,
715+ ":flags" ,
714716 ":forkserver_cc_proto" ,
715- ":version " ,
717+ ":setup_latency_breakdown " ,
716718 "//sandboxed_api/util:fileops" ,
717719 "@abseil-cpp//absl/base:core_headers" ,
720+ "@abseil-cpp//absl/flags:flag" ,
718721 "@abseil-cpp//absl/log" ,
719722 "@abseil-cpp//absl/log:check" ,
720723 "@abseil-cpp//absl/status" ,
@@ -1309,3 +1312,36 @@ cc_library(
13091312 "@abseil-cpp//absl/strings" ,
13101313 ],
13111314)
1315+
1316+ cc_library (
1317+ name = "setup_latency_breakdown" ,
1318+ srcs = ["setup_latency_breakdown.cc" ],
1319+ hdrs = ["setup_latency_breakdown.h" ],
1320+ copts = sapi_platform_copts (),
1321+ deps = [
1322+ ":comms" ,
1323+ "//sandboxed_api/util:raw_logging" ,
1324+ "@abseil-cpp//absl/time" ,
1325+ ],
1326+ )
1327+
1328+ cc_library (
1329+ name = "latency_stop_watch" ,
1330+ srcs = ["latency_stop_watch.cc" ],
1331+ hdrs = ["latency_stop_watch.h" ],
1332+ copts = sapi_platform_copts (),
1333+ deps = [
1334+ "@abseil-cpp//absl/time" ,
1335+ ],
1336+ )
1337+
1338+ cc_test (
1339+ name = "latency_stop_watch_test" ,
1340+ srcs = ["latency_stop_watch_test.cc" ],
1341+ copts = sapi_platform_copts (),
1342+ deps = [
1343+ ":latency_stop_watch" ,
1344+ "@abseil-cpp//absl/time" ,
1345+ "@googletest//:gtest_main" ,
1346+ ],
1347+ )
0 commit comments