MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / print_test

Method print_test

examples/llama-bench/llama-bench.cpp:732–744  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

730 }
731
732 void print_test(const test & t) override {
733 if (first) {
734 first = false;
735 } else {
736 fprintf(fout, ",\n");
737 }
738 fprintf(fout, " {\n");
739 print_fields(test::get_fields(), t.get_values());
740 fprintf(fout, " \"samples_ns\": [ %s ],\n", join(t.samples_ns, ", ").c_str());
741 fprintf(fout, " \"samples_ts\": [ %s ]\n", join(t.get_ts(), ", ").c_str());
742 fprintf(fout, " }");
743 fflush(fout);
744 }
745
746 void print_footer() override {
747 fprintf(fout, "\n]\n");

Callers

nothing calls this directly

Calls 5

fprintfFunction · 0.85
joinFunction · 0.70
get_valuesMethod · 0.45
c_strMethod · 0.45
get_tsMethod · 0.45

Tested by

no test coverage detected