MCPcopy Create free account
hub / github.com/async-profiler/async-profiler / logEmptyOutput

Method logEmptyOutput

src/profiler.cpp:1512–1528  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1510}
1511
1512void Profiler::logEmptyOutput(Arguments& args, u64 printed_samples_count, Writer& out) {
1513 if (!out.good()) {
1514 Log::warn("Output file may be incomplete");
1515 return;
1516 }
1517 if (args._loop) {
1518 return;
1519 }
1520 if (_total_samples - _failures[-ticks_skipped] == 0) {
1521 Log::info("No samples were collected");
1522 return;
1523 }
1524 if (printed_samples_count == 0) {
1525 Log::info("All samples were filtered out");
1526 return;
1527 }
1528}
1529
1530Error Profiler::runInternal(Arguments& args, Writer& out) {
1531 switch (args._action) {

Callers

nothing calls this directly

Calls 1

goodMethod · 0.80

Tested by

no test coverage detected