Constructor for building custom results (e.g., comparison tests)
| 59 | |
| 60 | /// Constructor for building custom results (e.g., comparison tests) |
| 61 | ProfileResultBuilder(const char* variant, const char* target) |
| 62 | : m_result(fl::json::object()) { |
| 63 | m_result.set("variant", variant); |
| 64 | m_result.set("target", target); |
| 65 | } |
| 66 | |
| 67 | /// Add timing data (automatically calculates ns_per_call and calls_per_sec) |
| 68 | void add_timing(int total_calls, fl::u32 elapsed_us) { |