mirror of
https://gitee.com/openharmony/developtools_profiler
synced 2024-11-23 15:00:17 +00:00
e1641fbd1e
Signed-off-by: stesen <stesen.ma@huawei.com> Change-Id: I714c8b10b45cbbf5ae137b1caf28ff5561624fbc
704 B
704 B
small tools to parse smaps information
build
native build:
# build with debug:
cargo build
# or release:
cargo build --release
static-linking Cross-Build for arm32:
#add toolchains:
rustup target add armv7-unknown-linux-musleabihf
rustup target add arm-unknown-linux-musleabihf
#add right linker to ~/.cargo/config:
[target.armv7-unknown-linux-musleabihf]
linker = "arm-linux-gnueabihf-ld"
[target.arm-unknown-linux-musleabihf]
linker = "arm-linux-gnueabihf-ld"
build:
cargo build --target=armv7-unknown-linux-musleabihf
#add --release for release
run
smaps-show -p PID [-v]
or
smaps-show -f FILE_PATH [-v]