From mboxrd@z Thu Jan 1 00:00:00 1970 Delivered-To: chneukirchen@gmail.com Received: by 10.25.214.169 with SMTP id p41csp1279110lfi; Mon, 5 Oct 2015 13:34:06 -0700 (PDT) X-Received: by 10.140.217.146 with SMTP id n140mr44584867qhb.27.1444077245997; Mon, 05 Oct 2015 13:34:05 -0700 (PDT) Return-Path: Received: from mail-qk0-x23a.google.com (mail-qk0-x23a.google.com. [2607:f8b0:400d:c09::23a]) by mx.google.com with ESMTPS id n96si22988538qgd.25.2015.10.05.13.34.05 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 05 Oct 2015 13:34:05 -0700 (PDT) Received-SPF: pass (google.com: domain of rack-devel+bncBDQI5KU46YGBBPF5ZOYAKGQE7OEI2XQ@googlegroups.com designates 2607:f8b0:400d:c09::23a as permitted sender) client-ip=2607:f8b0:400d:c09::23a; Authentication-Results: mx.google.com; spf=pass (google.com: domain of rack-devel+bncBDQI5KU46YGBBPF5ZOYAKGQE7OEI2XQ@googlegroups.com designates 2607:f8b0:400d:c09::23a as permitted sender) smtp.mailfrom=rack-devel+bncBDQI5KU46YGBBPF5ZOYAKGQE7OEI2XQ@googlegroups.com; dkim=pass header.i=@googlegroups.com; dmarc=fail (p=NONE dis=NONE) header.from=gmail.com Received: by mail-qk0-x23a.google.com with SMTP id f65sf27319566qkc.1; Mon, 05 Oct 2015 13:34:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=date:from:to:message-id:subject:mime-version:content-type :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:sender:list-subscribe :list-unsubscribe; bh=FuOOLlEIdeBCrdZispev1Hm3uxqgrplGZ0hyCPZvvQY=; b=v2HYHfUGhtfXL50CLoq4vbQR4hIubT0AZIYIWrLFS3i/ORwDu9NukCOz9HLKjGKZ5Y Dv/7YzOG34kxwgwns5q+li7FTaGtj392jR+WRUPiq/GfPIX/E8RSrywrK+NLqV4pL5Ke w5SFk7FMBbPmPonyg6kdWEqXolPLbpstKPub1FBTBzhsCP6XYxeAWniUfj3T9QxlDcnq 5xt7v1F93xR2bzdk3X2nQqtOgmlhQqbqyPm1UBZK2QTn3H0NjykfDtp5SD3HwutVBhH7 Be95kRhJkeICgdfeJ9bu9pjRBcMtWKpO7xTXKdeXjNmY0R0nbZCdNNkgJa8afp4dkhrw P1bg== X-Received: by 10.140.36.149 with SMTP id p21mr257969qgp.12.1444077245587; Mon, 05 Oct 2015 13:34:05 -0700 (PDT) X-BeenThere: rack-devel@googlegroups.com Received: by 10.140.19.112 with SMTP id 103ls3225411qgg.86.gmail; Mon, 05 Oct 2015 13:34:04 -0700 (PDT) X-Received: by 10.129.57.9 with SMTP id g9mr27795319ywa.19.1444077244461; Mon, 05 Oct 2015 13:34:04 -0700 (PDT) Received: by 10.50.78.105 with SMTP id a9msigx; Mon, 5 Oct 2015 09:52:18 -0700 (PDT) X-Received: by 10.50.78.225 with SMTP id e1mr114140igx.0.1444063938696; Mon, 05 Oct 2015 09:52:18 -0700 (PDT) Date: Mon, 5 Oct 2015 09:52:18 -0700 (PDT) From: Leandro Camargo To: Rack Development Message-Id: Subject: How to profile all before filters in Rails controller? MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_3805_1694273668.1444063938179" X-Original-Sender: leandroico@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-Google-Group-Id: 486215384060 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , ------=_Part_3805_1694273668.1444063938179 Content-Type: multipart/alternative; boundary="----=_Part_3806_559218101.1444063938179" ------=_Part_3806_559218101.1444063938179 Content-Type: text/plain; charset=UTF-8 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. ------=_Part_3806_559218101.1444063938179 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
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 (req= uests).

But what I want now is to profile some cri= tical 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 thou= gh they might
vary for each action and controller) and measure th= eir response time, using the NR's gem
method called=C2=A0add_= 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 &= 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.
------=_Part_3806_559218101.1444063938179-- ------=_Part_3805_1694273668.1444063938179--