-
Notifications
You must be signed in to change notification settings - Fork 48
Add ITT/JIT API documentation source files and gh-action to deploy docs to gh-pages #175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
6f7fdff
doc: add docs source files and gh-action to deploy docs to gh-pages
eparshut 132887d
doc: huge refactoring
eparshut 886e3d5
doc: address review comments
eparshut ec06c6e
doc: code cleanup
eparshut e7dd2a5
ci: update deploy-docs workflow
eparshut c227397
doc: update reference collector readme
eparshut adf84ef
doc: update readme
eparshut File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| name: Deploy Documentation | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - master | ||
| paths: | ||
| - 'docs/**' # Trigger only when the source docs files are modified | ||
|
|
||
| permissions: | ||
| contents: write | ||
|
|
||
| jobs: | ||
| build_and_deploy: | ||
| name: Build and deploy documentation | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
| - name: Install dependencies | ||
| run: | | ||
| python -m pip install --upgrade pip | ||
| pip install sphinx sphinx_rtd_theme | ||
| - name: Build documentation | ||
| run: python -m sphinx docs build | ||
| - name: Deploy to GitHub Pages | ||
| uses: peaceiris/actions-gh-pages@373f7f263a76c20808c831209c920827a82a2847 # v3.9.2 | ||
| with: | ||
| github_token: ${{ secrets.GITHUB_TOKEN }} | ||
| publish_branch: gh-pages | ||
| publish_dir: build | ||
| force_orphan: true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| # ITT/JIT APIs Documentation | ||
|
|
||
| ## Overview | ||
|
|
||
| This repository contains the source files for the ITT/JIT APIs online documentation, | ||
| which is hosted on GitHub Pages. [View the documentation here](link). | ||
|
|
||
| ## Build Documentation from Sources | ||
|
|
||
| 1. Install Sphinx and the required Sphinx theme: | ||
| ```bash | ||
| pip install sphinx sphinx_rtd_theme | ||
| 2. Navigate to the Documentation source folder: | ||
| ```bash | ||
| cd <ittapi_dir>/docs | ||
| 3. Build the Documentation with the following command: | ||
| ```bash | ||
| python -m sphinx . build |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| # | ||
| # Copyright (C) 2025 Intel Corporation | ||
| # | ||
| # SPDX-License-Identifier: GPL-2.0-only OR BSD-3-Clause | ||
| # | ||
|
|
||
| # Configuration file for the Sphinx documentation builder. | ||
| # | ||
| # For the full list of built-in configuration values, see the documentation: | ||
| # https://www.sphinx-doc.org/en/master/usage/configuration.html | ||
|
|
||
| # -- Project information ----------------------------------------------------- | ||
|
|
||
| project = 'ITT/JIT APIs Documentation' | ||
| copyright = '2025 Intel Corporation' | ||
| author = 'Intel Corporation' | ||
|
|
||
| # -- General configuration --------------------------------------------------- | ||
|
|
||
| extensions = [ | ||
| 'sphinx_rtd_theme', # ReadTheDocs theme | ||
| 'sphinx.ext.githubpages', # Support for GitHub Pages | ||
| 'sphinx.ext.ifconfig', # Conditional inclusion of content | ||
| ] | ||
|
|
||
| templates_path = ['_templates'] | ||
| exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] | ||
|
|
||
| # -- Options for HTML output ------------------------------------------------- | ||
|
|
||
| import sphinx_rtd_theme | ||
|
|
||
| html_theme = 'sphinx_rtd_theme' | ||
| html_theme_options = { | ||
| 'style_external_links': True, | ||
| } | ||
|
|
||
| html_baseurl = 'https://intel.github.io/ittapi/' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| .. _index: | ||
|
|
||
| The Intel® Instrumentation and Tracing Technology (ITT) and Just-In-Time (JIT) APIs | ||
| =================================================================================== | ||
|
|
||
|
|
||
|
eparshut marked this conversation as resolved.
|
||
| The Intel® Instrumentation and Tracing Technology (ITT) and Just-In-Time (JIT) APIs | ||
| are open source profiling APIs that you use with Intel software tools, to collect | ||
| and manage trace data during performance analysis. You can profile with ITT/JIT APIs | ||
| when you use Intel® VTune Profiler and Intel® Graphics Performance Analyzers (Intel® GPA). | ||
|
|
||
| This repository contains documentation that explains the use of these APIs. | ||
|
|
||
|
eparshut marked this conversation as resolved.
|
||
|
|
||
| .. toctree:: | ||
| :maxdepth: 1 | ||
| :caption: Contents: | ||
|
|
||
| src/overview | ||
| src/build | ||
| src/api-support | ||
| src/ref_collector | ||
| GitHub Project <https://github.com/intel/ittapi> | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| sphinx | ||
| sphinx_rtd_theme |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| .. _api-support: | ||
|
|
||
| Use the ITT/JIT APIs | ||
| ==================== | ||
|
|
||
|
|
||
| This section describes how you use ITT/JIT APIs with various environments. | ||
| The ITT/JIT APIs are a set of C/C++ functions and use no Java* or .NET* code. | ||
| For support with your runtime environment, use a Java Native Interface (JNI) | ||
| or C/C++ function call from the managed code. | ||
|
|
||
|
eparshut marked this conversation as resolved.
|
||
|
|
||
| C/C++ API Usage and Reference: | ||
| ------------------------------ | ||
|
|
||
|
eparshut marked this conversation as resolved.
|
||
| .. toctree:: | ||
| :maxdepth: 1 | ||
|
|
||
|
|
||
| itt-api-support | ||
| jit-api-support | ||
|
|
||
|
|
||
| Other Language API Bindings: | ||
| ---------------------------- | ||
|
|
||
| .. toctree:: | ||
| :maxdepth: 1 | ||
|
|
||
|
|
||
| Rust ITT API Bindings <https://docs.rs/ittapi/latest/ittapi> | ||
| Python ITT API Bindings <https://pypi.org/project/ittapi> | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,61 @@ | ||
| .. _build: | ||
|
|
||
| Build from Source Code | ||
| ====================== | ||
|
|
||
| Technical Requirements | ||
| ---------------------- | ||
|
|
||
| Before you build the ITT/JIT APIs, make sure you have the following hardware and software tools: | ||
|
|
||
| - Get general development tools, including C/C++ Compiler | ||
| - Install `Python <https://python.org>`__ 3.6 or later | ||
| - Install `CMake <https://cmake.org>`__ 3.5 or later | ||
| - For a Windows* system, install one of these: | ||
|
|
||
| - `Microsoft Visual Studio <https://visualstudio.microsoft.com>`__ 2015 or later | ||
| - `Ninja <https://ninja-build.org>`__ 1.9 or later | ||
|
|
||
| - To enable support for Fortran, install the `Intel Fortran Compiler | ||
| <https://www.intel.com/content/www/us/en/developer/tools/oneapi/fortran-compiler-download.html>`__ | ||
|
|
||
|
eparshut marked this conversation as resolved.
|
||
|
|
||
| Get the ITT/JIT APIs Source Code | ||
| -------------------------------- | ||
|
|
||
| To get the source code for the ITT/JIT APIs, do one of the following: | ||
|
|
||
| - Download it from `the latest public Release <https://github.com/intel/ittapi/releases>`__ | ||
| - Clone the repository: | ||
|
|
||
| .. code-block:: console | ||
|
|
||
| git clone https://github.com/intel/ittapi.git | ||
|
|
||
|
eparshut marked this conversation as resolved.
|
||
|
|
||
| Build the ITT/JIT APIs | ||
| ---------------------- | ||
|
|
||
|
eparshut marked this conversation as resolved.
|
||
| To build the ITT/JIT APIs static library, run this command: | ||
|
|
||
| .. code-block:: console | ||
|
|
||
| python buildall.py <options> | ||
|
|
||
|
|
||
| Use these options to configure the build process: | ||
|
|
||
| .. code-block:: console | ||
|
|
||
| usage: python buildall.py [-h] [-d] [-c] [-v] [-pt] [-ft] [--force_bits] | ||
|
|
||
| optional arguments: | ||
| -h, --help show this help message and exit | ||
| -d, --debug specify debug build configuration (release by default) | ||
| -c, --clean delete any intermediate and output files | ||
| -v, --verbose enable verbose output from build process | ||
| -pt, --ptmark enable anomaly detection support | ||
| -ft, --fortran enable fortran support | ||
| --force_bits specify bit version for the target | ||
| --vs specify visual studio version (Windows only) | ||
| --cmake_gen specify cmake build generator (Windows only) | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.