From e63d3f03eb1360c1d2c1bc58a343e2e8adc78ace Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Fri, 5 Sep 2008 20:32:20 +0000 Subject: Added memory tracer --- libs/web/luasrc/dispatcher.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libs/web/luasrc') diff --git a/libs/web/luasrc/dispatcher.lua b/libs/web/luasrc/dispatcher.lua index fd2be1eb4e..12093fe7a4 100644 --- a/libs/web/luasrc/dispatcher.lua +++ b/libs/web/luasrc/dispatcher.lua @@ -112,11 +112,14 @@ function httpdispatch(request) end luci.http.close() + + --context._disable_memtrace() end --- Dispatches a LuCI virtual path. -- @param request Virtual path function dispatch(request) + --context._disable_memtrace = require "luci.debug".trap_memtrace() local ctx = context ctx.path = request -- cgit v1.2.3