Profiling BL code


#1

Hi guys,

We’re wanting to use MiniProfiler throughout our app - but after checking the references of the MiniProfiler.DLL I notice it references MVC & System.Web - which we obviously would prefer to not reference further down our chain - where it isn’t required…

Most of our code is implemented past our MVC layer, of which our MVC layer is very light-weight

I guess the question is, down the line are they to be split out to separate the logic and Web References?

Or can other suggestions be made on how we can profile performance at our business level?

Thanks


#2

MiniProfiler has a very light dependency on MVC, in particular the WCF profiling bits hook up a different BaseProfilerProvider, all you need to do is implement a class that takes care of that and an IStorage provider and you have stripped the web dependency.