Khronos
A lightweight, easy-to-use profiling library for C programs
Measure execution time, track function calls, and visualize performance with beautiful web-based reports.
Why use Khronos?
📊 Easy Integration
Just include in your program and add simple start/stop calls around your functions
âš¡ Minimal Overhead
Lightweight design ensures profiling doesn't significantly impact your program's performance
📈 Visual Reports
Upload your profiling data to get interactive charts and detailed analysis
How to use khronos?
1. Download and Include
Download the library and add profiler.h and profiler.c to your project
#include "path/to/profiler.h"
2. Initialize
Initialize the profiler at the top of your main function
profiler_init();
3. Profile Your Functions
profiler_start("my_function");
my_function();
profiler_stop("my_function");
4. Save Data
profiler_save_data("my_program");
5. Cleanup
profiler_cleanup();
6. Compile and Run
Compile your code with:
cc -o my_program path/to/my_program.c path/to/profiler.c
Run your code with:
./my_program
7. Visualize
Register an account, upload your JSON file, and explore your performance data with interactive charts!