[OpenSIPS-Devel] [OpenSIPS/opensips] deb03f: struct hist debugging: Enhance the API
Liviu Chircu
noreply at github.com
Mon Aug 26 11:06:24 EDT 2019
Branch: refs/heads/master
Home: https://github.com/OpenSIPS/opensips
Commit: deb03fe86a8d0134526c86e62183cb80887b09c9
https://github.com/OpenSIPS/opensips/commit/deb03fe86a8d0134526c86e62183cb80887b09c9
Author: Liviu Chircu <liviu at opensips.org>
Date: 2019-08-26 (Mon, 26 Aug 2019)
Changed paths:
M lib/dbg/struct_hist.c
M lib/dbg/struct_hist.h
M net/net_tcp.c
Log Message:
-----------
struct hist debugging: Enhance the API
* add the possibility to disable auto-logging. Previously, each
debugged entity would periodically dump logs to disk as it
accumulated logs. Disabling auto logging is especially useful
when troubleshooting code in high-throughput environments.
* sh_log() is now a macro, which will additionally print the
FILE / FUNC / LINE of the calling code, offering more
troubleshooting insights and reducing the amount of code written
* simplify sh_unref(), the 2nd parameter was unnecessary
More information about the Devel
mailing list