Command-line tool to parse large log files and compute stats:
- Top-K error messages by frequency
- Latency histogram (ms buckets)
- Simple RAII scoped timer to profile hot paths
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build -j
./build/logprof --help./build/logprof sample.log --top 5 --latency-col 3 --delimiter ','cmake -S . -B build -DENABLE_TESTS=ON
cmake --build build -j
ctest --test-dir build --output-on-failure- Uses
std::string_viewfor zero-copy tokenization. - Accepts CSV-like logs; adjust
--latency-colto your column (0-based).