How megatruh/parallel-log-file-analyzer works
This is a C log-analysis program for comparing sequential, multithreaded, and multiprocess execution. The main workflow loads a log file, dispatches analysis to the selected runner, aggregates parsed-line statistics, and reports results and timings; an optional sequential baseline verifies parallel results. The README also describes synthetic log generation and a race-condition demonstration. Edges reflect the sampled entry points, README, and source-index references; unsampled implementation details are not inferred.
Main entry points: main_final.c Final CLI · main_bug.c Race demo · analyzer.c Range analyzer · thread_runner.c Thread runner
Components 15
Input
- Log generator
app/gen_log.c - Log file
- File loader
src/loader.c
Analysis
- Line chunker
src/chunker.c - Range analyzer
src/analyzer.c - Line parser
src/parser.c - Result structures
include/common.h
Execution
- Final CLI
app/main_final.c - Race demo
app/main_bug.c - Wall timer
src/timer.c - Sequential runner
src/seq_runner.c - Thread runner
src/thread_runner.c - Process runner
src/proc_runner.c
Reporting
- Result reporting
src/report.c
Other components
- User
Connections 23
- User → Log generator: generates logs
README.md - Log generator → Log file: writes log
README.md - User → Final CLI: runs analysis
README.md - User → Race demo: runs demo
README.md - Final CLI → File loader: loads file
app/main_final.c - Race demo → File loader: loads file
app/main_bug.c - Log file → File loader: provides input
- Final CLI → Wall timer: times work
app/main_final.c - Final CLI → Sequential runner: dispatches mode
app/main_final.c - Final CLI → Thread runner: dispatches mode
app/main_final.c - Final CLI → Process runner: dispatches mode
app/main_final.c - Final CLI → Sequential runner: runs baseline
app/main_final.c - Final CLI → Result reporting: prints results
app/main_final.c - Race demo → Line chunker: finds boundaries
app/main_bug.c - Race demo → Range analyzer: analyzes reference
app/main_bug.c - Race demo → Wall timer: times trials
app/main_bug.c - Race demo → Result reporting: prints banner
app/main_bug.c - Sequential runner → Range analyzer: processes range
src/seq_runner.c - Thread runner → Line chunker: splits input
src/thread_runner.c - Thread runner → Range analyzer: processes chunks
src/thread_runner.c - Process runner → Line chunker: splits input
src/proc_runner.c - Process runner → Range analyzer: processes chunks
src/proc_runner.c - Range analyzer → Line parser: parses lines
src/analyzer.c