MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / profileQueryIfEnabled

Method profileQueryIfEnabled

tools/benchmark/benchmark_runner.cpp:92–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92void BenchmarkRunner::profileQueryIfEnabled(Benchmark* benchmark) const {
93 if (config->enableProfile && !config->outputPath.empty()) {
94 auto profileInfo = benchmark->runWithProfile();
95 std::ofstream profileFile(config->outputPath + "/" + benchmark->name + "_profile.txt",
96 std::ios_base::app);
97 profileFile << profileInfo->getNext()->toString() << '\n';
98 profileFile.flush();
99 profileFile.close();
100 }
101}
102
103} // namespace benchmark
104} // namespace lbug

Callers

nothing calls this directly

Calls 6

runWithProfileMethod · 0.80
emptyMethod · 0.45
toStringMethod · 0.45
getNextMethod · 0.45
flushMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected