From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.1 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 9F8951F597 for ; Mon, 16 Jul 2018 21:19:37 +0000 (UTC) From: Eric Wong To: mwrap-public@80x24.org Subject: [PATCH 0/19] the heavy version of mwrap Date: Mon, 16 Jul 2018 21:19:14 +0000 Message-Id: <20180716211933.5835-1-e@80x24.org> List-Id: TL;DR: live demo of the new features running inside a Rack app: https://80x24.org/MWRAP/each/2000 The following changes since commit 834de3bc0da4af53535d5c9d4975e546df9fb186: bin/mwrap: support LISTEN_FDS env from systemd (2018-07-16 19:33:12 +0000) are available in the Git repository at: https://80x24.org/mwrap.git heavy for you to fetch changes up to c432e3ad30aa247dbac8575af87b0c594365d3fd: mwrap_rack: Rack app to track live allocations (2018-07-16 21:14:13 +0000) ---------------------------------------------------------------- Eric Wong (19): support per-allocation headers for per-alloc tracking mwrap: use malloc to do our own memalign hold RCU read lock to insert each allocation realloc: do not copy if allocation failed internal_memalign: do not assume real_malloc succeeds ensure ENOMEM is preserved in errno when appropriate memalign: check alignment on all public functions reduce stack usage from file names resolve real_malloc earlier for C++ programs allow analyzing live allocations via Mwrap[location] alias Mwrap.clear to Mwrap.reset implement accessors for SourceLocation mwrap_aref: quiet -Wshorten-64-to-32 warning fixes for FreeBSD 11.1... use memrchr to extract address under glibc do not track allocations for constructor and Init_ disable memalign tracking by default support Mwrap.quiet to temporarily disable allocation tracking mwrap_rack: Rack app to track live allocations ext/mwrap/extconf.rb | 15 + ext/mwrap/mwrap.c | 792 +++++++++++++++++++++++++++++++++++++++++++-------- lib/mwrap_rack.rb | 105 +++++++ test/test_mwrap.rb | 113 ++++++++ 4 files changed, 901 insertions(+), 124 deletions(-) create mode 100644 lib/mwrap_rack.rb