use TRACE_SCOPE_SLOW for high-frequency tracing

Signed-off-by: John Bates <jbates@chromium.org>
Reviewed-By: Gert Wollny <gert.wollny@collabora.com>
macos/master
John Bates 4 years ago
parent e64afcf897
commit 8d824b10cc
  1. 2
      src/vrend_decode.c

@ -1641,7 +1641,7 @@ static int vrend_decode_ctx_submit_cmd(struct virgl_context *ctx,
VREND_DEBUG(dbg_cmd, gdctx->grctx, "%-4d %-20s len:%d\n", VREND_DEBUG(dbg_cmd, gdctx->grctx, "%-4d %-20s len:%d\n",
cur_offset, vrend_get_comand_name(cmd), len); cur_offset, vrend_get_comand_name(cmd), len);
TRACE_SCOPE(vrend_get_comand_name(cmd)); TRACE_SCOPE_SLOW(vrend_get_comand_name(cmd));
ret = decode_table[cmd](gdctx->grctx, buf, len); ret = decode_table[cmd](gdctx->grctx, buf, len);
if (ret) { if (ret) {

Loading…
Cancel
Save