[go: up one dir, main page]

Skip to content
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

Add events to API calls #2130

Merged
merged 4 commits into from
Nov 15, 2024
Merged

Add events to API calls #2130

merged 4 commits into from
Nov 15, 2024

Conversation

Fujikawas
Copy link
Contributor
@Fujikawas Fujikawas commented Nov 12, 2024

Main changes of this PR

Added profiling Events to more API functions.

Motivation and additional information

Close #2013

Author's checklist

  • I used the pre-commit hook to prevent dirty commits and used pre-commit run --all to format old commits.
  • I added a changelog file with make changelog if there are user-observable changes since the last release.
  • I added a test to cover the proposed changes in our test suite.
  • For breaking changes: I documented the changes in the appropriate porting guide.
  • I stuck to C++17 features.
  • I stuck to CMake version 3.22.1.
  • I squashed / am about to squash all commits that should be seen as one.

Reviewers' checklist

  • Does the changelog entry make sense? Is it formatted correctly?
  • Do you understand the code changes?

@fsimonis fsimonis added the enhancement A new feature, a new functionality of preCICE (from user perspective) label Nov 15, 2024
@fsimonis fsimonis added this to the Version 3.2.0 milestone Nov 15, 2024
@fsimonis
Copy link
Member

Thanks! Could you still add a changelog?

Copy link
Member
@fsimonis fsimonis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! Let's merge and see how it behaves in large cases.

We may have to remove the event for setting an individual vertex for performance reasons.

Reading events file profiling.json
Output timing are in us.
name                                                             │       sum    count               mean       min       max
─────────────────────────────────────────────────────────────────┼──────────────────────────────────────────────────────────
total                                                            │ 2079587.0        1          2079587.0 2079587.0 2079587.0
  solver.advance                                                 │    4878.0      849  5.745583038869258       4.0      22.0
    readData.Solid-Nodes-Mesh_Pressure                           │     506.0      848 0.5966981132075472       0.0       2.0
    writeData.Solid-Nodes-Mesh_CrossSectionLength                │     330.0      848 0.3891509433962264       0.0       1.0
  solver.initialize                                              │      18.0        1               18.0      18.0      18.0
    setMeshVertices.Solid-Nodes-Mesh                             │       3.0        1                3.0       3.0       3.0
    writeData.Solid-Nodes-Mesh_CrossSectionLength                │       1.0        1                1.0       1.0       1.0
---- >8 ====

@fsimonis fsimonis merged commit 5f1c252 into develop Nov 15, 2024
21 checks passed
@fsimonis fsimonis deleted the API-profiling branch November 15, 2024 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement A new feature, a new functionality of preCICE (from user perspective)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing API Profiling
2 participants