about summary refs log tree commit diff
path: root/tvix
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2024-06-14T11·17+0300
committerflokli <flokli@flokli.de>2024-06-15T05·24+0000
commit01aadace80108e32322ea64a7ca355a1cb04d3d9 (patch)
tree9ae4c37816c5db8842b3e80a030ce607b3cacca8 /tvix
parentcd0b92419a8c27fe6556cc3fc6acaf3fed7a50d6 (diff)
feat(tvix/cli,store): add tracy feature r/8280
If compiled with this features, this emits packets compatible with the
[Tracy](https://github.com/wolfpld/tracy) format.

Change-Id: I330f5d85ab290abe51f2df38dc55464f3ccfc6cd
Reviewed-on: https://cl.tvl.fyi/c/depot/+/11815
Tested-by: BuildkiteCI
Reviewed-by: Connor Brewster <cbrewster@hey.com>
Diffstat (limited to 'tvix')
-rw-r--r--tvix/Cargo.nix8
-rw-r--r--tvix/cli/Cargo.toml4
-rw-r--r--tvix/store/Cargo.toml1
3 files changed, 11 insertions, 2 deletions
diff --git a/tvix/Cargo.nix b/tvix/Cargo.nix
index f854a7cf0e..3b8c45bf48 100644
--- a/tvix/Cargo.nix
+++ b/tvix/Cargo.nix
@@ -13546,7 +13546,10 @@ rec {
             packageId = "wu-manber";
           }
         ];
-
+        features = {
+          "tracy" = [ "tvix-tracing/tracy" ];
+        };
+        resolvedDefaultFeatures = [ "default" "tracy" ];
       };
       "tvix-eval" = rec {
         crateName = "tvix-eval";
@@ -14175,9 +14178,10 @@ rec {
           "fuse" = [ "tvix-castore/fuse" ];
           "otlp" = [ "tvix-tracing/otlp" ];
           "tonic-reflection" = [ "dep:tonic-reflection" "tvix-castore/tonic-reflection" ];
+          "tracy" = [ "tvix-tracing/tracy" ];
           "virtiofs" = [ "tvix-castore/virtiofs" ];
         };
-        resolvedDefaultFeatures = [ "cloud" "default" "fuse" "integration" "otlp" "tonic-reflection" "virtiofs" ];
+        resolvedDefaultFeatures = [ "cloud" "default" "fuse" "integration" "otlp" "tonic-reflection" "tracy" "virtiofs" ];
       };
       "tvix-tracing" = rec {
         crateName = "tvix-tracing";
diff --git a/tvix/cli/Cargo.toml b/tvix/cli/Cargo.toml
index 434e4045e9..644393a7c4 100644
--- a/tvix/cli/Cargo.toml
+++ b/tvix/cli/Cargo.toml
@@ -30,3 +30,7 @@ git = "https://github.com/tvlfyi/wu-manber.git"
 
 [target.'cfg(not(target_env = "msvc"))'.dependencies]
 tikv-jemallocator = "0.5"
+
+[features]
+default = []
+tracy = ["tvix-tracing/tracy"]
diff --git a/tvix/store/Cargo.toml b/tvix/store/Cargo.toml
index dc6126724f..760569eb8d 100644
--- a/tvix/store/Cargo.toml
+++ b/tvix/store/Cargo.toml
@@ -71,6 +71,7 @@ cloud = [
 fuse = ["tvix-castore/fuse"]
 otlp = ["tvix-tracing/otlp"]
 tonic-reflection = ["dep:tonic-reflection", "tvix-castore/tonic-reflection"]
+tracy = ["tvix-tracing/tracy"]
 virtiofs = ["tvix-castore/virtiofs"]
 # Whether to run the integration tests.
 # Requires the following packages in $PATH: