pw_rpc: Add the benchmark service

Add the first two RPCs in the pw.rpc.Benchmark service.

Change-Id: Icb45736936620e8e78e2e983808db55f62ac7941
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/54664
Commit-Queue: Wyatt Hepler <hepler@google.com>
Pigweed-Auto-Submit: Wyatt Hepler <hepler@google.com>
Reviewed-by: Alexei Frolov <frolv@google.com>
diff --git a/pw_rpc/BUILD.gn b/pw_rpc/BUILD.gn
index 367a83d..6cc8dbc 100644
--- a/pw_rpc/BUILD.gn
+++ b/pw_rpc/BUILD.gn
@@ -128,6 +128,13 @@
   public = [ "public/pw_rpc/synchronized_channel_output.h" ]
 }
 
+pw_source_set("benchmark") {
+  public_configs = [ ":public_include_path" ]
+  public_deps = [ ":protos.raw_rpc" ]
+  public = [ "public/pw_rpc/benchmark.h" ]
+  sources = [ "benchmark.cc" ]
+}
+
 pw_source_set("test_utils") {
   public = [
     "public/pw_rpc/internal/test_method.h",
@@ -158,17 +165,23 @@
 
 pw_proto_library("protos") {
   sources = [
+    "benchmark.proto",
     "echo.proto",
     "internal/packet.proto",
   ]
   inputs = [ "echo.options" ]
+  deps = [ "$dir_pw_protobuf:common_protos" ]
   python_package = "py"
   prefix = "pw_rpc"
 }
 
 pw_doc_group("docs") {
-  sources = [ "docs.rst" ]
+  sources = [
+    "benchmark.rst",
+    "docs.rst",
+  ]
   inputs = [
+    "benchmark.proto",
     "echo.proto",
     "internal/packet.proto",
   ]