Skip to content

Commit

Permalink
add metrics to the book
Browse files Browse the repository at this point in the history
  • Loading branch information
carolynzech committed Jan 16, 2025
1 parent 098c031 commit 31aed2a
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/book.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
paths:
- 'doc/**'
- '.github/workflows/book.yml'
- 'scripts/kani-std-analysis/**'

jobs:
build:
Expand All @@ -18,6 +19,23 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'

- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install -r scripts/kani-std-analysis/requirements.txt
- name: Generate Metrics Graphs
run: |
cd scripts/kani-std-analysis/
python kani_std_analysis.py --plot-only
cd ../..
mv scripts/kani-std-analysis/*.png doc/src/metrics/kani/
- name: Install mdbook
run: |
cargo install mdbook --version "^0.4" --locked
Expand Down
2 changes: 2 additions & 0 deletions doc/src/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
- [Verification Tools](./tools.md)
- [Kani](./tools/kani.md)

- [Metrics](./metrics.md)
- [Kani](./metrics/kani/kani.md)

---

Expand Down
3 changes: 3 additions & 0 deletions doc/src/metrics.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Metrics

Each approved tool can (optionally) publish metrics here about how their tool has been applied to the effort thus far.
10 changes: 10 additions & 0 deletions doc/src/metrics/kani/kani.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Kani Metrics

Note that these metrics are for x86-64 architectures.

## `core`
![Unsafe Metrics](core_unsafe_metrics.png)

![Safe Abstractions Metrics](core_safe_abstractions_metrics.png)

![Safe Metrics](core_safe_metrics.png)

0 comments on commit 31aed2a

Please sign in to comment.