sglang_v0.5.2/pytorch_2.8.0/third_party/ittapi/rust/ittapi
hailin c8e8c1e9ff . 2025-09-20 16:09:34 +08:00
..
src . 2025-09-20 16:09:34 +08:00
Cargo.toml . 2025-09-20 16:09:34 +08:00
README.md . 2025-09-20 16:09:34 +08:00

README.md

ittapi

Build Status Documentation Status

This crate allows Rust programs to use Intel® Instrumentation and Tracing Technology (ITT) APIs. Currently, the following APIs are supported (please submit an issue or PR for additional support):

  • a JIT notification API, a higher-level view of the C JIT Profiling API
  • the Domain API
  • the Task API
  • the String Handle API
  • the Event API
  • the Collection Control API

This uses the ittapi-sys crate which depends on the C ittapi library.

IMPORTANT NOTE: this crate is currently only tested on Linux, macOS, and Windows platforms but support for other platforms is intended; contributions are welcome! FreeBSD and OpenBSD are supported but untested.

If you are interested in using VTune to profile Rust applications, you may find the following guide helpful: Wasmtime Docs: Using VTune on Linux

Use

[dependencies]
ittapi = "*"

Instrument the code to measure with ittapi; e.g.,:

Build

cargo build

Test

cargo test