From 59e6ec0395086126a57588121a678e7905d52b73 Mon Sep 17 00:00:00 2001 From: discord9 <55937128+discord9@users.noreply.github.com> Date: Fri, 7 Feb 2025 19:43:40 +0800 Subject: [PATCH] chore: update pprof (#5488) dep: update pprof --- Cargo.lock | 26 +++----------------------- Cargo.toml | 2 -- src/servers/Cargo.toml | 2 +- 3 files changed, 4 insertions(+), 26 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 3398cdcc1c5..1ef7915a5de 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2263,7 +2263,7 @@ version = "0.12.0" dependencies = [ "common-error", "common-macro", - "pprof 0.14.0", + "pprof", "prost 0.13.3", "snafu 0.8.5", "tokio", @@ -8424,27 +8424,6 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391" -[[package]] -name = "pprof" -version = "0.13.0" -source = "git+https://github.com/GreptimeTeam/pprof-rs?rev=1bd1e21#1bd1e210d8626da3d1e5aff976e6feee994f576d" -dependencies = [ - "backtrace", - "cfg-if", - "criterion 0.5.1", - "findshlibs", - "inferno", - "libc", - "log", - "nix 0.26.4", - "once_cell", - "parking_lot 0.12.3", - "smallvec", - "symbolic-demangle", - "tempfile", - "thiserror 1.0.64", -] - [[package]] name = "pprof" version = "0.14.0" @@ -8454,6 +8433,7 @@ dependencies = [ "aligned-vec", "backtrace", "cfg-if", + "criterion 0.5.1", "findshlibs", "inferno", "libc", @@ -10417,7 +10397,7 @@ dependencies = [ "pin-project", "pipeline", "postgres-types", - "pprof 0.13.0", + "pprof", "prometheus", "promql-parser", "prost 0.13.3", diff --git a/Cargo.toml b/Cargo.toml index 3c03169309b..b53f827e3ec 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -278,8 +278,6 @@ tokio-rustls = { git = "https://github.com/GreptimeTeam/tokio-rustls", rev = "46 # This is commented, since we are not using aws-lc-sys, if we need to use it, we need to uncomment this line or use a release after this commit, or it wouldn't compile with gcc < 8.1 # see https://github.com/aws/aws-lc-rs/pull/526 # aws-lc-sys = { git ="https://github.com/aws/aws-lc-rs", rev = "556558441e3494af4b156ae95ebc07ebc2fd38aa" } -# Apply a fix for pprof for unaligned pointer access -pprof = { git = "https://github.com/GreptimeTeam/pprof-rs", rev = "1bd1e21" } [workspace.dependencies.meter-macros] git = "https://github.com/GreptimeTeam/greptime-meter.git" diff --git a/src/servers/Cargo.toml b/src/servers/Cargo.toml index 6ac32cff13d..450a8529a08 100644 --- a/src/servers/Cargo.toml +++ b/src/servers/Cargo.toml @@ -142,7 +142,7 @@ tokio-postgres = "0.7" tokio-postgres-rustls = "0.12" [target.'cfg(unix)'.dev-dependencies] -pprof = { version = "0.13", features = ["criterion", "flamegraph"] } +pprof = { version = "0.14", features = ["criterion", "flamegraph"] } [build-dependencies] common-version.workspace = true