8 releases

0.5.0 Dec 4, 2025
0.4.0 Oct 23, 2023
0.3.5 Oct 5, 2023
0.3.4 Jul 28, 2023
0.3.1 Apr 12, 2022

#56 in Data structures

Download history 125607/week @ 2026-01-23 136227/week @ 2026-01-30 131934/week @ 2026-02-06 157996/week @ 2026-02-13 174484/week @ 2026-02-20 191943/week @ 2026-02-27 215529/week @ 2026-03-06 197121/week @ 2026-03-13 195116/week @ 2026-03-20 234728/week @ 2026-03-27 228086/week @ 2026-04-03 256849/week @ 2026-04-10 253185/week @ 2026-04-17 279244/week @ 2026-04-24 279126/week @ 2026-05-01 271611/week @ 2026-05-08

1,131,335 downloads per month
Used in 334 crates (7 directly)

GPL-2.0-only OR BSD-3-Clause

1MB
22K SLoC

Rust 15K SLoC // 0.0% comments C 2K SLoC // 0.0% comments Python 2K SLoC // 0.2% comments GNU Style Assembly 1.5K SLoC // 0.0% comments C++ 1K SLoC // 0.1% comments Assembly 265 SLoC // 0.1% comments

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

Dependencies