MCPcopy Create free account
hub / github.com/RedisGraph/RedisGraph / GraphContext_LogQuery

Function GraphContext_LogQuery

src/graph/graphcontext.c:816–835  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

814//------------------------------------------------------------------------------
815
816void GraphContext_LogQuery
817(
818 const GraphContext *gc, // graph context
819 uint64_t received, // query received timestamp
820 double wait_duration, // waiting time
821 double execution_duration, // executing time
822 double report_duration, // reporting time
823 bool parameterized, // uses parameters
824 bool utilized_cache, // utilized cache
825 bool write, // write query
826 bool timeout, // timeout query
827 const char *query // query string
828) {
829 ASSERT(gc != NULL);
830 ASSERT(query != NULL);
831
832 QueriesLog_AddQuery(gc->queries_log, received, wait_duration,
833 execution_duration, report_duration, parameterized, utilized_cache,
834 write, timeout, query);
835}
836
837//------------------------------------------------------------------------------
838// Cache API

Callers 1

QueryCtx_AdvanceStageFunction · 0.85

Calls 1

QueriesLog_AddQueryFunction · 0.85

Tested by

no test coverage detected