Collecting perf counters in executions built by Bazel?

35 views
Skip to first unread message

Aysylu Greenberg

unread,
Jun 13, 2022, 2:22:44 PM6/13/22
to benchmark-discuss
Hello,

I'd like to collect perf counters for my benchmark that's built using Bazel. I see instructions for this for cmake here, but not sure how to adapt these for Bazel builds. Has anybody tried this?

Thanks,
Aysylu

dominic hamon

unread,
Jun 14, 2022, 8:13:37 AM6/14/22
to Aysylu Greenberg, benchmark-discuss
i think you'd want to link to libpfm and define HAVE_LIBPFM.

those two things are all the cmake version does.

i'm not sure how you detect if libpfm is available in bazel  though.

dominic hamon | google
there are no bad ideas; only good ideas that go horribly wrong.


--
You received this message because you are subscribed to the Google Groups "benchmark-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to benchmark-disc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/benchmark-discuss/c2e5bdd2-97ea-4c87-8f12-cfdada31b079n%40googlegroups.com.
Reply all
Reply to author
Forward
Message has been deleted
Message has been deleted
0 new messages