# Where is this time being spent?

**URL:** <https://community.miniprofiler.com/t/where-is-this-time-being-spent/87>\
**Category:** uncategorized\
**Created:** [July 30, 2012, 5:59am UTC](https://community.miniprofiler.com/t/where-is-this-time-being-spent/87 "2012-07-30T05:59:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dave\_Sanders](https://sea2.discourse-cdn.com/flex016/user_avatar/community.miniprofiler.com/dave_sanders/32/461_2.png) [@Dave\_Sanders](https://community.miniprofiler.com/u/Dave_Sanders)\
**Post date:** [July 30, 2012, 5:59am UTC](https://community.miniprofiler.com/t/where-is-this-time-being-spent/87/1 "2012-07-30T05:59:54Z")

</div>

In this example below, where exactly is that first 1132ms being spent? Is that just time spent in Rails around getting to the page and then the rendering of the view template? Is there any way to break that time down more to see, say, which methods are causing the lag?

thx!

![alt text](https://sea2.discourse-cdn.com/flex016/uploads/miniprofiler/7/7062216b26bd88d9.png)

---

<div class="post-metadata">

**Author:** ![sam](https://sea2.discourse-cdn.com/flex016/user_avatar/community.miniprofiler.com/sam/32/377_2.png) [@sam](https://community.miniprofiler.com/u/sam)\
**Post date:** [July 30, 2012, 2:44pm UTC](https://community.miniprofiler.com/t/where-is-this-time-being-spent/87/2 "2012-07-30T14:44:26Z")

</div>

My guess is that it is somewhere in the rack chain. Probably Rack::Lock, if you install the `stacktrace` gem and do a pp=backtrace you should see a sampling of some of the stack traces.
