Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:94730 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 1567 invoked from network); 27 Jul 2016 22:22:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Jul 2016 22:22:32 -0000 Authentication-Results: pb1.pair.com header.from=sean@siobud.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=sean@siobud.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain siobud.com designates 104.236.58.159 as permitted sender) X-PHP-List-Original-Sender: sean@siobud.com X-Host-Fingerprint: 104.236.58.159 siobud.com Received: from [104.236.58.159] ([104.236.58.159:58472] helo=siobud.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 80/A0-31357-52439975 for ; Wed, 27 Jul 2016 18:22:30 -0400 Received: from SeanLaptop.siobud.com (c-73-8-76-141.hsd1.il.comcast.net [73.8.76.141]) by siobud.com (Postfix) with ESMTPSA id 50CA8D7C6F; Wed, 27 Jul 2016 22:22:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=siobud.com; s=mail; t=1469658145; bh=kbqJ9uXEBsrrZV3lsAocfwwjSxb0EmFEiNbEqWu0ZQE=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=sJREABYuprNSPHPnvU9zd/swJdMB9QEkQ30JI2iEbuytS9Xld7Am5Go8cI35/az5p IOBthpOkwF0W6nR+26Bb6iDt9Y8p5XhmtbeBL4o0Tc+pOFb8ucUYlyG+D4FVeLbf11 R9LPjMz7tZW2OIDdsJc1GMXC+r8PSyEfQfXymttw= Date: Wed, 27 Jul 2016 17:22:24 -0500 To: Adam Baratz Cc: "internals@lists.php.net" Message-ID: <20160727222224.GA1171@SeanLaptop.siobud.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.6.0 (2016-04-01) Subject: Re: [PHP-DEV] automating gcov with third-party extensions From: sean@siobud.com (Sean DuBois) On Wed, Jul 27, 2016 at 05:22:24PM -0400, Adam Baratz wrote: > I had a positive experience using gcov with a C extension. I used it to get > a better sense of what the .phpt tests (and valgrind) were really telling > me. > > To get it to work in an automated way, I hacked out Makefile.gcov and some > relevant chunks of config.m4 from php-src. I'm wondering if there would be > value in getting phpize to produce some of this. Am I right in guessing > that other people want to do things like this? > > Thanks, > Adam Hey Adam! It was a pain, but I managed to get gcov running without making any changes to build stuff. The most important stuff was EXTRA_LDFLAGS so the build process wouldn't blow away the gcno https://github.com/php/pecl-math-stats/blob/master/.travis.yml The I ship it off to a third party service, which gives really nice visualizations. When bugs hit is gives a quick way to guesstimate where they are. https://codecov.io/gh/Sean-Der/pecl-mail-mailparse/src/php7/php_mailparse_mime.c