| 2700 | // |
| 2701 | |
| 2702 | llama_perf_context_data llama_perf_context(const llama_context * ctx) { |
| 2703 | llama_perf_context_data data = {}; |
| 2704 | |
| 2705 | if (ctx == nullptr) { |
| 2706 | return data; |
| 2707 | } |
| 2708 | |
| 2709 | data = ctx->perf_get_data(); |
| 2710 | |
| 2711 | return data; |
| 2712 | } |
| 2713 | |
| 2714 | void llama_perf_context_print(const llama_context * ctx) { |
| 2715 | const auto data = llama_perf_context(ctx); |
no test coverage detected