7 releases

0.4.0 Oct 23, 2023
0.3.5 Oct 5, 2023
0.3.4 Jul 28, 2023
0.3.3 Jan 19, 2023
0.3.1 Apr 12, 2022

#127 in Development tools

Download history 28397/week @ 2024-03-14 28155/week @ 2024-03-21 28635/week @ 2024-03-28 29005/week @ 2024-04-04 30810/week @ 2024-04-11 34969/week @ 2024-04-18 31677/week @ 2024-04-25 32882/week @ 2024-05-02 37327/week @ 2024-05-09 42066/week @ 2024-05-16 33005/week @ 2024-05-23 34650/week @ 2024-05-30 31346/week @ 2024-06-06 38252/week @ 2024-06-13 39324/week @ 2024-06-20 34355/week @ 2024-06-27

149,436 downloads per month
Used in 44 crates (3 directly)

GPL-2.0-only OR BSD-3-Clause

745KB
18K SLoC

Rust 15K SLoC // 0.0% comments C 2K SLoC // 0.0% comments GNU Style Assembly 1.5K SLoC // 0.1% comments Assembly 353 SLoC // 0.0% 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 = "0.3"

Build

cargo build

Test

cargo test

Dependencies

~150–400KB