]> Repositorios git - scryer-prolog.git/commitdiff
Upgrade to latest iai for summary output
authorinfogulch <[email protected]>
Tue, 21 Nov 2023 19:07:33 +0000 (13:07 -0600)
committerinfogulch <[email protected]>
Wed, 22 Nov 2023 03:53:19 +0000 (21:53 -0600)
.github/workflows/ci.yml
Cargo.lock
Cargo.toml

index b0f740a0cb7c02262c5512b951f604cece5d5cc7..b887d1407880d42e503792c74b6c7c4e03bf52ef 100644 (file)
@@ -142,7 +142,8 @@ jobs:
           cache-context: report
       - run: |
           cargo install cargo2junit --force
-          cargo install iai-callgrind-runner --force --version `cargo metadata --format-version 1 | jq -r '.resolve.nodes[].id|split(" ")|select(.[0]=="iai-callgrind")|.[1]'`
+          # cargo install iai-callgrind-runner --force --version `cargo metadata --format-version 1 | jq -r '.resolve.nodes[].id|split(" ")|select(.[0]=="iai-callgrind")|.[1]'`
+          cargo install iai-callgrind-runner --force --git https://github.com/iai-callgrind/iai-callgrind --rev c77bc3c83d7f4e976cc42d4597236a8db259e772
           sudo apt install valgrind -y
 
       - name: Test and report
@@ -163,7 +164,7 @@ jobs:
 
       - run: cargo build --all-targets --release
       - run: cargo test --bench setup --release
-      - run: cargo bench --bench run_iai
+      - run: cargo bench --bench run_iai -- --save-summary=json
       - run: cargo bench --bench run_criterion
       - run: cargo bench --bench run_criterion -- --profile-time 60
 
index b1e53a2ba70e2eab0e305441c99917353630aa78..c5a335613423714a6c3d5b15fa561e55047cbf48 100644 (file)
@@ -1207,9 +1207,8 @@ dependencies = [
 
 [[package]]
 name = "iai-callgrind"
-version = "0.7.3"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2679de583a9f5232b45b1f3a31b5e2f739bccfee9b7902488aca8f8c2c5482d1"
+version = "0.8.0"
+source = "git+https://github.com/iai-callgrind/iai-callgrind.git?rev=c77bc3c83d7f4e976cc42d4597236a8db259e772#c77bc3c83d7f4e976cc42d4597236a8db259e772"
 dependencies = [
  "bincode",
  "iai-callgrind-macros",
@@ -1219,8 +1218,7 @@ dependencies = [
 [[package]]
 name = "iai-callgrind-macros"
 version = "0.1.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "af5af66b85e350097b8c0f6329c6347d3323d010443475741c29a1a167f116fb"
+source = "git+https://github.com/iai-callgrind/iai-callgrind.git?rev=c77bc3c83d7f4e976cc42d4597236a8db259e772#c77bc3c83d7f4e976cc42d4597236a8db259e772"
 dependencies = [
  "proc-macro-error",
  "proc-macro2",
@@ -1230,9 +1228,8 @@ dependencies = [
 
 [[package]]
 name = "iai-callgrind-runner"
-version = "0.7.3"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "12cc1093f263249d7c541c53849dac74f4ae756cd31e3cac1a12204efcec68bd"
+version = "0.8.0"
+source = "git+https://github.com/iai-callgrind/iai-callgrind.git?rev=c77bc3c83d7f4e976cc42d4597236a8db259e772#c77bc3c83d7f4e976cc42d4597236a8db259e772"
 dependencies = [
  "serde",
 ]
index baed57b0b0265109c4b95fc5f76ca09a5e6abdb4..e99d4da88961ceb8ba88a9bf96fbf5cf18b59027 100644 (file)
@@ -112,7 +112,7 @@ assert_cmd = "1.0.3"
 predicates-core = "1.0.2"
 maplit = "1.0.2"
 serial_test = "2.0.0"
-iai-callgrind = "0.7.3"
+iai-callgrind = { git = "https://github.com/iai-callgrind/iai-callgrind.git", rev = "c77bc3c83d7f4e976cc42d4597236a8db259e772" }
 criterion = "0.5.1"
 
 [target.'cfg(not(target_os = "windows"))'.dev-dependencies]