Skip to main content

ittapi

ittapi is a Python binding to Intel Instrumentation and Tracing Technology (ITT) API. It provides a convenient way to mark up the Python code for further performance analysis using performance analyzers from Intel like Intel VTune or others.

ittapi supports following ITT APIs:

  • Collection Control API
  • Domain API
  • Event API
  • Id API
  • String Handle API
  • Task API
  • Thread Naming API

Usage

The main goal of the project is to provide the ability to instrument a Python code using ITT API in the Pythonic way. ittapi provides wrappers that simplify markup of Python code.

import ittapi

@ittapi.task
def workload():
  pass

workload()

ittapi.task can be used as a decorator. In this case, the name of a callable object (workload function in this example) will be used as a name of the task and the task will be attributed to a default domain named 'ittapi'. If you want to change the default name and/or other parameters for the task (e.g. task domain), you can pass them as arguments to ittapi.task:

import ittapi

@ittapi.task('My Task', domain='My Task Domain')
def workload():
  pass

workload()

Also, ittapi.task returns the object that can be used as a context manager:

import ittapi

with ittapi.task():
    # some code here...
    pass

If the task name is not specified, the ittapi.task uses call site information (filename and line number) to give the name to the task. A custom name for the task and other task parameters can be specified via arguments for ittapi.task in the same way as for the decorator form.

Installation

[TODO] intel-ittapi package is available on PyPi and can be installed in the usual way for the supported configurations:

[TODO] pip install intel-ittapi

Build

The native part of ittapi module is written using C++20 standard, therefore you need a compiler that supports this standard, for example GCC-10 for Linux and Visual Studio 2022 for Windows.

Ubuntu 22.04

  1. Install the compiler and Python utilities to build module:

    sudo apt install gcc g++ python3-pip
    
  2. Clone the repository:

    git clone https://github.com/intel/ittapi.git
    
  3. Build and install ittapi:

    cd python
    pip install .
    

Windows 10/11

  1. Install Python 3.8+ together with pip utility.

  2. Install Visual Studio 2022. Make sure that "Desktop development with C++" workload is selected.

  3. Clone the repository

    git clone https://github.com/intel/ittapi.git
    
  4. Build and install ittapi

    cd python
    pip install .
    

References

Metadata

Release files for ittapi 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for ittapi 1.1.0
File Actions
ittapi-1.1.0-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for ittapi-1.1.0-cp312-cp312-win_amd64.whl
ittapi-1.1.0-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_28_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.5+ x86-64, Linux glibc 2.28+ x86-64 Details for ittapi-1.1.0-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_28_x86_64.whl
ittapi-1.1.0-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for ittapi-1.1.0-cp311-cp311-win_amd64.whl
ittapi-1.1.0-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_28_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.5+ x86-64, Linux glibc 2.28+ x86-64 Details for ittapi-1.1.0-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_28_x86_64.whl
ittapi-1.1.0-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details for ittapi-1.1.0-cp310-cp310-win_amd64.whl
ittapi-1.1.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_28_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.28+ x86-64, Linux glibc 2.5+ x86-64 Details for ittapi-1.1.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_28_x86_64.whl
ittapi-1.1.0-cp39-cp39-win_amd64.whl CPython 3.9 CPython 3.9 Windows x86-64 Details for ittapi-1.1.0-cp39-cp39-win_amd64.whl
ittapi-1.1.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_28_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.5+ x86-64, Linux glibc 2.28+ x86-64 Details for ittapi-1.1.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_28_x86_64.whl
ittapi-1.1.0-cp38-cp38-win_amd64.whl CPython 3.8 CPython 3.8 Windows x86-64 Details for ittapi-1.1.0-cp38-cp38-win_amd64.whl
ittapi-1.1.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_28_x86_64.whl CPython 3.8 CPython 3.8 Linux glibc 2.28+ x86-64, Linux glibc 2.5+ x86-64 Details for ittapi-1.1.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_28_x86_64.whl

Total release size: 1.0 MB

Release files / ittapi-1.1.0-cp312-cp312-win_amd64.whl

Download URL ittapi-1.1.0-cp312-cp312-win_amd64.whl
Size 44.3 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
d1369b45ce6e6931838cc1b17f7d1ed59f48ff9ee377dac0a69f7d7a5c4b2709
BLAKE2b-256 checksum
How to use checksums
a23432044f67c6f08809628cbcb1f10c31f42199ae58c11fbd8b146fd6ddd1ef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.14

Release files / ittapi-1.1.0-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_28_x86_64.whl

Download URL ittapi-1.1.0-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_28_x86_64.whl
Size 163.9 kB
Tags CPython 3.12 Linux glibc 2.28+ x86-64 Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
cfffa30c65639e946074f7a883eb502d9dd57ab44f1d87b95f822de6fc772b12
BLAKE2b-256 checksum
How to use checksums
df7968effdb035b1382c5f4081ad34c5bbf8002cc4ec045edf4c958f14122976
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.14

Release files / ittapi-1.1.0-cp311-cp311-win_amd64.whl

Download URL ittapi-1.1.0-cp311-cp311-win_amd64.whl
Size 36.5 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
0c03f6c6e23432c01fb11eec44bf6c0fbb41ec0ba0bda1b4440c44afe429889d
BLAKE2b-256 checksum
How to use checksums
315b57d5457898a11a6ae0c7e6159692fb9455983f0c0a5f4e2ac9791804308c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.14

Release files / ittapi-1.1.0-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_28_x86_64.whl

Download URL ittapi-1.1.0-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_28_x86_64.whl
Size 162.6 kB
Tags CPython 3.11 Linux glibc 2.28+ x86-64 Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
9dcc45e1a131a19b7b12206766a659427366bc067dd930c61788bcb22cba068b
BLAKE2b-256 checksum
How to use checksums
6b89203da0ffabff3d03aa81e4ab97d46f36eadbba08d0c1a7c0c149cc9ac6ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.14

Release files / ittapi-1.1.0-cp310-cp310-win_amd64.whl

Download URL ittapi-1.1.0-cp310-cp310-win_amd64.whl
Size 36.5 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
d035d8de943a5e7acf01249830329c7851a37a8529c87dfcd658574c227a4249
BLAKE2b-256 checksum
How to use checksums
3a3379653d975d6ac3cb532d23445c7697eca2f90ac8b3286acd9a8af4c1dbf6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.14

Release files / ittapi-1.1.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_28_x86_64.whl

Download URL ittapi-1.1.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_28_x86_64.whl
Size 165.9 kB
Tags CPython 3.10 Linux glibc 2.28+ x86-64 Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
0e0af4236362596ccec11d4d49b77f5914172be618efa9a6a8256ce0ab2d4099
BLAKE2b-256 checksum
How to use checksums
09cf587827cf47d483836b6daf20112241f47951838a6c97151a272cb06c363a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.14

Release files / ittapi-1.1.0-cp39-cp39-win_amd64.whl

Download URL ittapi-1.1.0-cp39-cp39-win_amd64.whl
Size 44.4 kB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
ce85af4f23ea1d0f44431775a934be099490099fca494aecf55b4688feb15a1e
BLAKE2b-256 checksum
How to use checksums
051d73a34d5ca7cf1f6d492f1c5cfd02b3e6fb49251f994e61ef75793b184160
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.14

Release files / ittapi-1.1.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_28_x86_64.whl

Download URL ittapi-1.1.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_28_x86_64.whl
Size 165.1 kB
Tags CPython 3.9 Linux glibc 2.28+ x86-64 Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
578b0f370909892322e6652f8a61213453c3abdac802ce23547eb788b1a5f5f8
BLAKE2b-256 checksum
How to use checksums
dc956a547693fd427608d86680d9bc1ee66a6e2879431138034948c4cfb38aa2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.14

Release files / ittapi-1.1.0-cp38-cp38-win_amd64.whl

Download URL ittapi-1.1.0-cp38-cp38-win_amd64.whl
Size 44.5 kB
Tags CPython 3.8 Windows x86-64
SHA-256 checksum
How to use checksums
2d4dd5663c998a61abcbfc1e6f289cb8cab91cd64357321a1818c0039999c9b3
BLAKE2b-256 checksum
How to use checksums
0943662ef336e2f73f9aee1b3b0e9442d2faecd42357d446a781fdf67e7d332b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.14

Release files / ittapi-1.1.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_28_x86_64.whl

Download URL ittapi-1.1.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_28_x86_64.whl
Size 167.3 kB
Tags CPython 3.8 Linux glibc 2.28+ x86-64 Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
c41f6a2a1b3c254b28283d6096316ec6da8e1a0da0a318fe51b37dbc6abec4f0
BLAKE2b-256 checksum
How to use checksums
efa7797403df69d01e1ef26b0512c15b94a4f89eac6e916f51bc9c1eae6ea38a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.14

Security for ittapi 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page