| 1510 | } |
| 1511 | |
| 1512 | void 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 | |
| 1530 | Error Profiler::runInternal(Arguments& args, Writer& out) { |
| 1531 | switch (args._action) { |