Skip to content

Instantly share code, notes, and snippets.

mail message modified:
Xiaochen Wang <wangxiaochen0@gmail.com>
11:07 AM (2 hours ago)
to web-07
hi mike,
We still have an issue, always crashed on first instruction of tracing generated machine code.
@chobits
chobits / bt.lua
Last active September 7, 2023 03:15
trace function call chains while reading the lua source
-- Trace request context exclusively within Lua projects
-- executed by the Lua-nginx-module
--
-- The timer context is not available within functions triggered by
-- ngx.timer.at(). However, you can easily make adjustments to this file to
-- enable it.
--
-- In your lua source file:
-- require("bt").init_hook()
@chobits
chobits / perf.lua
Last active January 22, 2024 07:08
perfermance test for kong old and new dns client library
--[[
run it by this command:
$ resty --shdict "kong_dns_cache 10m" --shdict "kong_dns_cache_ipc 10m" ./perf.lua
]]
pcall(require, "luarocks.loader")
require("kong.globalpatches")()
local json = require("cjson").encode