From 5feaf9f59303b5668c3d7b0f949a958fe726d911 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=91=E9=A3=8E?= Date: Wed, 18 Sep 2013 16:55:30 +0800 Subject: [PATCH] error on untraced time --- lualib-src/lua-skynet.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lualib-src/lua-skynet.c b/lualib-src/lua-skynet.c index de4c6421..1e76ab62 100644 --- a/lualib-src/lua-skynet.c +++ b/lualib-src/lua-skynet.c @@ -88,6 +88,12 @@ _cb(struct skynet_context * context, void * ud, int type, int session, uint32_t int r = lua_pcall(L, 5, 0 , trace); _stat_end(S, &ti); + + struct trace_info *tti = trace_yield(S->trace); + if (tti) { + skynet_error(context, "Untraced time %f", trace_delete(S->trace, tti)); + } + if (r == LUA_OK) { if (S->lua->reload) { skynet_callback(context, NULL, 0);