android_system_core/init/libprefetch/prefetch/Cargo.toml
Vikram Auradkar ae8313f8e6 libprefetch: library to prefetch data using tracing.
1: This supports "mem" tracing only.
2: Replay option is modified to use "pread" instead
of readahead.

A simple utility binary "prefetch" is built which links to the library.

The binary allows record, replay and verifying the generated
metadata.

Bug: 362507272
Test: cargo test passes all unit tests.

Verify record, replay and dump options:

./prefetch record --duration 10 --path /data/test/trace-test
./prefetch replay --path /data/test/trace-test
./prefetch dump /data/test/trace-test --format csv

Change-Id: I1661e49183c6120d2878510e609571fe6d608bb5
Signed-off-by: Vikram Auradkar <auradkar@google.com>
Signed-off-by: Akilesh Kailash <akailash@google.com>
2024-11-19 17:50:49 -08:00

51 lines
1.1 KiB
TOML

[package]
name = "prefetch"
version = "0.1.0"
edition = "2018"
default-run = "prefetch"
[lib]
name = "prefetch_rs"
path = "src/lib.rs"
[[bin]]
name = "prefetch"
path = "src/main.rs"
[features]
default = ["use_argh"]
use_argh = ["argh"]
[dependencies]
argh = { version = "0.1.10", optional = true }
chrono = { version = "=0.4.19", features = ["serde"] }
crc32fast = "1.2.1"
csv = "=1.1.6"
libc = "0.2.82"
log = "=0.4.14"
lru-cache = "0.1.2"
memchr = "=2.3.4"
nix = {version = "0.28", features = ["fs", "time", "feature", "mman", "uio"]}
proc-macro2 = "=1.0.26"
quote = "=1.0.9"
rand = "0.8.3"
rayon = "=1.5.0"
rayon-core = "=1.9.0"
regex = "1.4.5"
serde = { version = "*", features = ["derive"] }
serde_cbor = "0.11.2"
serde_derive = "=1.0.123"
serde_json = "=1.0.62"
thiserror = "=1.0.24"
thiserror-impl = "1.0.24"
walkdir = "2.3.2"
# crates required for android builds
[target.'cfg(target_os = "android")'.dependencies]
android_logger = "0.10.1"
# crates not present in android builds
[target.'cfg(not(target_os = "android"))'.dependencies]
bincode = "=0.9.0"
env_logger = "=0.8.4"
tempfile = "2.2.0"