You might try using a .NET profiler.  I think there are some free ones
out there, but I haven't used them.  I have used JetBrains dotTrace
(http://www.jetbrains.com/profiler/index.html), and RedGate's ANTS
profiler (http://www.red-gate.com/products/ants_profiler/index.htm).
Both are excellent tools, and offer free trials.  These profiles can
show you the breakdown to every individual call in your application,
and tell you just how long everything is taking so you can see where
the time is spent.

On Oct 2, 9:10 am, Tobes <[EMAIL PROTECTED]> wrote:
> Hi folks
>
> For each web request, I'd like to roughly find out
>
> a - How long the entire request took
> b - How much of that time was spent inside NHibernate
>
> Rails gives me this out of the box in the log files, and I miss it a
> bit!
>
> I've seen the rhino commons PagePerformanceModule, and also the
> EnsureMaxNumberOfQueriesPerRequestModule (2 gems from Ayende, I'm
> guessing!).
>
> Getting the page time was easy, any idea how I can get the time in
> NHibernate?
>
> I was thinking some kind of decorator around my repositories, although
> it feels like quite a lot of duplication. Alternatively there might be
> some AOP fun to be had... Any other ways that are "closer to the
> metal" you can think of?
>
> Tobin
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to