Skip to content

feat: html report#59

Merged
KaykCaputo merged 1 commit into
KaykCaputo:masterfrom
waldo121:feature/html-report
May 5, 2026
Merged

feat: html report#59
KaykCaputo merged 1 commit into
KaykCaputo:masterfrom
waldo121:feature/html-report

Conversation

@waldo121
Copy link
Copy Markdown
Contributor

@waldo121 waldo121 commented May 4, 2026

Summary

Adds the --html cli flag

Related Issue

Closes #35

Type of Change

  • Bug fix
  • New feature
  • Refactor
  • Documentation update
  • CLI behavior change

What Changed

List the key changes in a few bullets.

  • New module for reporting with a html reporter.
  • New unit test
  • Docs update

Validation

  • Added a test case

Checklist

  • The code follows style conventions.
  • I added unit tests for the new functionality.
  • CI (GitHub Actions) is green.
  • I updated documentation/README when needed.

Before/After Output (if applicable)

After

oracletrace sample.py --html index.html 
Summary:
Total execution time: 0.6038s
                         Top functions by Total Time                          
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━┳━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━┓
┃ Function                    ┃ Total Time (s) ┃ Calls ┃ Avg. Time/Call (ms) ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━╇━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━┩
│ sample.py:<module>          │         0.6009 │     1 │             600.902 │
│ sample.py:main              │         0.6009 │     1 │             600.871 │
│ sample.py:process_data      │         0.6008 │     2 │             300.378 │
│ sample.py:calculate_results │         0.4003 │     2 │             200.132 │
└─────────────────────────────┴────────────────┴───────┴─────────────────────┘

Logic Flow:
<module>
├── sample.py:<module> (1x, 0.6009s)
│   └── sample.py:main (1x, 0.6009s)
│       └── sample.py:process_data (2x, 0.6008s)
│           └── sample.py:calculate_results (2x, 0.4003s)
└── oracletrace/tracer.py:Tracer.stop (1x, 0.0000s)
HTML report generated: /home/raphael/src/oracletrace/index.html
image

@waldo121 waldo121 marked this pull request as ready for review May 4, 2026 19:09
@KaykCaputo KaykCaputo requested review from AndreXP1 and KaykCaputo May 5, 2026 01:14
@KaykCaputo KaykCaputo merged commit 8cb14a6 into KaykCaputo:master May 5, 2026
5 checks passed
@waldo121 waldo121 deleted the feature/html-report branch May 6, 2026 01:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] Interactive HTML Report for Trace Analysis

3 participants