Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[FR] Add API to provide custom profilers #1807 #1809

Merged
merged 2 commits into from
Jul 16, 2024

Conversation

xdje42
Copy link
Contributor

@xdje42 xdje42 commented Jul 1, 2024

This API is akin to the MemoryManager API and lets tools provide their own profiler which is wrapped in the same way MemoryManager is wrapped. Namely, the profiler provides Start/Stop methods that are called at the start/end of running the benchmark in a separate pass.

src/benchmark_runner.cc Outdated Show resolved Hide resolved
@dmah42
Copy link
Member

dmah42 commented Jul 3, 2024

looks like clang-format (style Google) needs to be run.

@xdje42 xdje42 force-pushed the i1807-add-profile-api branch from d292050 to 87be344 Compare July 11, 2024 19:03
@xdje42 xdje42 marked this pull request as ready for review July 11, 2024 19:04
@xdje42 xdje42 force-pushed the i1807-add-profile-api branch from 87be344 to df55243 Compare July 11, 2024 19:06
This API is akin to the MemoryManager API and lets tools provide
their own profiler which is wrapped in the same way MemoryManager is
wrapped. Namely, the profiler provides Start/Stop methods that are called
at the start/end of running the benchmark in a separate pass.
@xdje42 xdje42 force-pushed the i1807-add-profile-api branch from df55243 to c43d476 Compare July 16, 2024 01:36
@dmah42 dmah42 merged commit 7c8ed6b into google:main Jul 16, 2024
80 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants