Statements from LinqPad does not appear in the Profiler

43 views
Skip to first unread message

Glenn F. Henriksen

unread,
Dec 1, 2011, 8:47:00 AM12/1/11
to nhprof
I'm using LinqPad to quickly run code experiements on a current code
base. In a setup method I call

HibernatingRhinos.Profiler.Appender.NHibernate.NHibernateProfiler.Initialize();
since I'd like to profile the SQL statements in NHProf.

However, no statements ever appear in NHProf.

I get "LINQPad Query Server [Query1]" in the top line though,
indicating that the application is being profiled. So there is some
connection, but not enough to pass the SQL statements across. Is there
a known thing I should do to make this work in addition to
initializing the Profiler?

Fitzchak Yitzchaki

unread,
Dec 1, 2011, 9:32:58 AM12/1/11
to nhp...@googlegroups.com, gl...@henriksen.no
Does LinqPad supports NHibernate?
If so, can you show me what are you trying to do in a short screen video?


--
You received this message because you are subscribed to the Google Groups "nhprof" group.
To post to this group, send email to nhp...@googlegroups.com.
To unsubscribe from this group, send email to nhprof+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/nhprof?hl=en.


Jansen, Chris

unread,
Dec 1, 2011, 11:16:33 AM12/1/11
to nhp...@googlegroups.com
With LINQPad I have found that you need to flush the appender at the end:

HibernatingRhinos.Profiler.Appender.ProfilerInfrastructure.FlushAllMessages();

--

Glenn F. Henriksen

unread,
Dec 23, 2011, 7:29:19 AM12/23/11
to nhprof
Tried doing that with no luck. Didn't work.

On Dec 1, 5:16 pm, "Jansen, Chris" <chris.jan...@troppussoftware.com>
wrote:

Jansen, Chris

unread,
Dec 29, 2011, 5:06:30 PM12/29/11
to nhp...@googlegroups.com
This isn't working for me either now. The session shows up in NHProf, but no statements.

-----Original Message-----
From: nhp...@googlegroups.com [mailto:nhp...@googlegroups.com] On Behalf Of Glenn F. Henriksen
Sent: Friday, December 23, 2011 5:29
To: nhprof

--

Jansen, Chris

unread,
Dec 29, 2011, 6:24:18 PM12/29/11
to nhp...@googlegroups.com
Ignore, I had other issues. I can still see statements in NHProf using LINQPad.
Reply all
Reply to author
Forward
0 new messages