MCPcopy Create free account
hub / github.com/ValveSoftware/steam-audio / RunBenchmarks

Function RunBenchmarks

core/src/benchmark/phonon_perf.cpp:152–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150}
151
152void RunBenchmarks(const std::string& benchmarkName)
153{
154 if (benchmarkName == "all")
155 {
156 auto names = getFunctionRegistry().getFunctionNames();
157 for (const auto& name : names)
158 {
159 getFunctionRegistry().runFunction(name);
160 }
161 }
162 else
163 {
164 if (!getFunctionRegistry().runFunction(benchmarkName))
165 {
166 PrintOptions();
167 }
168 }
169}
170
171int main(int argc, char** argv)
172{

Callers 1

mainFunction · 0.85

Calls 3

PrintOptionsFunction · 0.85
getFunctionNamesMethod · 0.45
runFunctionMethod · 0.45

Tested by

no test coverage detected