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

Method perf_get_data

smallthinker/src/llama-context.cpp:1949–1960  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1947//
1948
1949llama_perf_context_data llama_context::perf_get_data() const {
1950 llama_perf_context_data data = {};
1951
1952 data.t_start_ms = 1e-3 * t_start_us;
1953 data.t_load_ms = 1e-3 * t_load_us;
1954 data.t_p_eval_ms = 1e-3 * t_p_eval_us;
1955 data.t_eval_ms = 1e-3 * t_eval_us;
1956 data.n_p_eval = std::max(1, n_p_eval);
1957 data.n_eval = std::max(1, n_eval);
1958
1959 return data;
1960}
1961
1962void llama_context::perf_reset() {
1963 t_start_us = ggml_time_us();

Callers 1

llama_perf_contextFunction · 0.80

Calls 1

maxFunction · 0.85

Tested by

no test coverage detected