We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cab001e commit a8642dcCopy full SHA for a8642dc
extras/analyze/src/types.cpp
@@ -141,6 +141,12 @@ void ev::defTypes(py::module &Mod) {
141
.def_property_readonly(
142
"blocks",
143
[](const Benchmark &Bench) { return BenchmarkBlocks{Bench.Blocks}; })
144
+ .def_property_readonly("info",
145
+ [](const Benchmark &Bench) -> py::dict {
146
+ using namespace pybind11::literals;
147
+
148
+ return py::dict("name"_a = Bench.Name);
149
+ })
150
.def("__repr__", [](const Benchmark &Bench) {
151
return "<Benchmark(name=" + Bench.Name + ", " +
152
std::to_string(Bench.Blocks.size()) + " blocks)>";
0 commit comments