feat(tvix/cli,store): add tracy feature

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>
This commit is contained in:
Florian Klink 2024-06-14 14:17:37 +03:00 committed by flokli
parent cd0b92419a
commit 01aadace80
3 changed files with 11 additions and 2 deletions

View file

@ -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";

View file

@ -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"]

View file

@ -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: