Skip to content

Add profiling hooks #336

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

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft

Add profiling hooks #336

wants to merge 3 commits into from

Conversation

imrn99
Copy link
Collaborator

@imrn99 imrn99 commented May 21, 2025

Description

Scope: benches

Type of change: feat

Content description:

  • add a profiling feature
  • add profiling macros that generate code if the profiling feature is enabled
    • macros write to a fifo at /tmp/hc_perf_control to enable & disable perf sampling
    • the section profiled is controlled using environment variables (e.g. HCBENCH_REMESH_SWAP for the swap step of the remesh kernel)
    • prof_init, prof_start, prof_stop; init is required due to conditions on static mutable refs

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.62%. Comparing base (36b8972) to head (e3ecc61).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #336   +/-   ##
=======================================
  Coverage   87.62%   87.62%           
=======================================
  Files          72       72           
  Lines       11370    11370           
=======================================
  Hits         9963     9963           
  Misses       1407     1407           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

2 participants