From mboxrd@z Thu Jan 1 00:00:00 1970 Delivered-To: chneukirchen@gmail.com Received: by 10.25.214.169 with SMTP id p41csp1590711lfi; Mon, 12 Oct 2015 09:42:23 -0700 (PDT) X-Received: by 10.202.171.216 with SMTP id u207mr15891995oie.107.1444668143428; Mon, 12 Oct 2015 09:42:23 -0700 (PDT) Return-Path: Received: from mail-oi0-x238.google.com (mail-oi0-x238.google.com. [2607:f8b0:4003:c06::238]) by mx.google.com with ESMTPS id r5si5208603oex.60.2015.10.12.09.42.22 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 12 Oct 2015 09:42:23 -0700 (PDT) Received-SPF: pass (google.com: domain of rack-devel+bncBD75LW742ECRB3WF56YAKGQEONQ5AVQ@googlegroups.com designates 2607:f8b0:4003:c06::238 as permitted sender) client-ip=2607:f8b0:4003:c06::238; Authentication-Results: mx.google.com; spf=pass (google.com: domain of rack-devel+bncBD75LW742ECRB3WF56YAKGQEONQ5AVQ@googlegroups.com designates 2607:f8b0:4003:c06::238 as permitted sender) smtp.mailfrom=rack-devel+bncBD75LW742ECRB3WF56YAKGQEONQ5AVQ@googlegroups.com; dkim=pass header.i=@googlegroups.com; dmarc=fail (p=NONE dis=NONE) header.from=gmail.com Received: by mail-oi0-x238.google.com with SMTP id j5sf4504769oia.0; Mon, 12 Oct 2015 09:42:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :content-type:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:x-spam-checked-in-group :list-post:list-help:list-archive:sender:list-subscribe :list-unsubscribe; bh=ZTNSSsr+nQQwuMJzLzLgwqTW4WQEZXbsPLrHdYfMYjA=; b=rLADO7U7VM24ghng+ybpvujG+HZjvIsL6Mft4JeU+04whushRrp0/XWXO+fqJ8QBBz jXg6W/xlP6v7k/7HXjyy7HrBu5WdQH5Wls2RdY195uMu+pCochf+cBzI2WhYwhcRZAHB ZwcbuCiD6pSRJd1us/OwPAt7pb7/As3ihb6tILSsLi6Vut0EbTPqSzdQlOMRWdqFAp2y smGfyf+ZLqeWykVlfDW45tNEXKxHxAGyk6hK1voRJKnUgwbQlGnh321YKUId/AVU8xUt xj2FsFzMFsUSaAYUhWrnothBmMJp8ylw+EcNCrnwbD2bi/OHSO3W1PwCAtOYUS7V2x09 jQ8Q== X-Received: by 10.50.112.4 with SMTP id im4mr146178igb.1.1444668142928; Mon, 12 Oct 2015 09:42:22 -0700 (PDT) X-BeenThere: rack-devel@googlegroups.com Received: by 10.107.136.210 with SMTP id s79ls1502570ioi.76.gmail; Mon, 12 Oct 2015 09:42:22 -0700 (PDT) X-Received: by 10.66.144.164 with SMTP id sn4mr26210129pab.9.1444668142123; Mon, 12 Oct 2015 09:42:22 -0700 (PDT) Received: from mail-ig0-x22d.google.com (mail-ig0-x22d.google.com. [2607:f8b0:4001:c05::22d]) by gmr-mx.google.com with ESMTPS id cj2si655596igb.1.2015.10.12.09.42.22 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 12 Oct 2015 09:42:22 -0700 (PDT) Received-SPF: pass (google.com: domain of jftucker@gmail.com designates 2607:f8b0:4001:c05::22d as permitted sender) client-ip=2607:f8b0:4001:c05::22d; Received: by mail-ig0-x22d.google.com with SMTP id pe7so84548096igc.0 for ; Mon, 12 Oct 2015 09:42:22 -0700 (PDT) X-Received: by 10.50.83.104 with SMTP id p8mr13526559igy.13.1444668141928; Mon, 12 Oct 2015 09:42:21 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: James Tucker Date: Mon, 12 Oct 2015 16:42:11 +0000 Message-ID: Subject: Re: How to profile all before filters in Rails controller? To: Rack Development Content-Type: multipart/alternative; boundary=089e0111c3c26b2c040521eb0391 X-Original-Sender: jftucker@gmail.com X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of jftucker@gmail.com designates 2607:f8b0:4001:c05::22d as permitted sender) smtp.mailfrom=jftucker@gmail.com; dmarc=pass (p=NONE dis=NONE) header.from=gmail.com Reply-To: rack-devel@googlegroups.com Precedence: list Mailing-list: list rack-devel@googlegroups.com; contact rack-devel+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: rack-devel@googlegroups.com X-Google-Group-Id: 486215384060 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , --089e0111c3c26b2c040521eb0391 Content-Type: text/plain; charset=UTF-8 Probably better to ask a rails mailinglist. On Mon, Oct 5, 2015, 1:34 PM Leandro Camargo wrote: > Hello. > > I'm not sure if this is the right place to ask this, but I believe so, ATM. > I'm basically using rack-mini-profiler to detect some bottlenecks in my > application. > I use New Relic to check response times of the web transactions (requests). > > But what I want now is to profile some critical pieces of my code. And I > want to start with > the controllers' before filter methods. I'd like to wrap up all of them > (even though they might > vary for each action and controller) and measure their response time, > using the NR's gem > method called add_method_tracer. > > Anyone has good recommendations on best way to achieve that? > > -- Leandro > > -- > > --- > You received this message because you are subscribed to the Google Groups > "Rack Development" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to rack-devel+unsubscribe@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- --- You received this message because you are subscribed to the Google Groups "Rack Development" group. To unsubscribe from this group and stop receiving emails from it, send an email to rack-devel+unsubscribe@googlegroups.com. For more options, visit https://groups.google.com/d/optout. --089e0111c3c26b2c040521eb0391 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

Probably better to ask a rails mailinglist.


On Mon, Oct 5, 2015, 1:34 P= M=C2=A0Leandro Camargo <leandroi= co@gmail.com> wrote:
Hello.

I'm not sure if this is the right p= lace to ask this, but I believe so, ATM.
I'm basically using = rack-mini-profiler to detect some bottlenecks in my application.
= I use New Relic to check response times of the web transactions (requests).=

But what I want now is to profile some critical p= ieces of my code. And I want to start with
the controllers' b= efore filter methods. I'd like to wrap up all of them (even though they= might
vary for each action and controller) and measure their res= ponse time, using the NR's gem
method called=C2=A0add_method_= tracer.

Anyone has good recommendations on best wa= y to achieve that?

-- Leandro

--

---
You received this message because you are subscribed to the Google Groups &= quot;Rack Development" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to rack-devel+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--

---
You received this message because you are subscribed to the Google Groups &= quot;Rack Development" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to rack-dev= el+unsubscribe@googlegroups.com.
For more options, visit http= s://groups.google.com/d/optout.
--089e0111c3c26b2c040521eb0391--