Compaile / ctrack

A lightweight, high-performance C++ benchmarking and tracking library for effortless function profiling in both development and production environments. Features single-header integration, minimal overhead, multi-threaded support, customizable output, and advanced metrics for quick bottleneck detection in complex codebases.
MIT License
135 stars 5 forks source link

csv export #2

Closed juliangaal closed 3 months ago

juliangaal commented 3 months ago

Hi, this looks just like what I am looking for!

Have you thought about making the output of multiple runs comparable by supporting the export of benchmark data to e.g. CSV?

Compaile commented 3 months ago

hi, glad to hear. yes csv export is already on the roadmap

juliangaal commented 3 months ago

Great, thanks!

Please let me know if you want help with this, I'll gladly help out.

My initial toughts would be to implement result_csv(filename)

Compaile commented 3 months ago

you are more then welcome to create a pr!

yes i think that is the way to do it, then like in the other functions create the result object auto res = calc_stats_and_clear(settings); and then write a helper function to write it all to csv.

juliangaal commented 3 months ago

See #5