4 releases

0.3.3 Jan 19, 2023
0.3.2 Nov 14, 2022
0.3.1 Apr 12, 2022
0.3.0 Apr 6, 2022

#202 in Development tools

Download history 5930/week @ 2022-12-05 6142/week @ 2022-12-12 5650/week @ 2022-12-19 3005/week @ 2022-12-26 4990/week @ 2023-01-02 5234/week @ 2023-01-09 7482/week @ 2023-01-16 10152/week @ 2023-01-23 8997/week @ 2023-01-30 8692/week @ 2023-02-06 10721/week @ 2023-02-13 11373/week @ 2023-02-20 12180/week @ 2023-02-27 11896/week @ 2023-03-06 10523/week @ 2023-03-13 11776/week @ 2023-03-20

47,528 downloads per month
Used in 18 crates (via wasmtime-jit)

GPL-2.0-only OR BSD-3-Clause

1.5MB
19K SLoC

Rust 13K SLoC // 0.0% comments C 2.5K SLoC // 0.1% comments FORTRAN Modern 1.5K SLoC // 0.1% comments GNU Style Assembly 1.5K SLoC // 0.1% comments C++ 597 SLoC // 0.1% comments Assembly 353 SLoC // 0.0% comments Python 155 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 is 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