mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-07-15 19:49:51 +08:00
Adding NHiberbateProfiler activation to devtools module
--HG-- extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4044986
This commit is contained in:
parent
4db45c2050
commit
3d0c236102
BIN
lib/nhprof/HibernatingRhinos.Profiler.Appender.dll
Normal file
BIN
lib/nhprof/HibernatingRhinos.Profiler.Appender.dll
Normal file
Binary file not shown.
@ -31,6 +31,10 @@
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="HibernatingRhinos.Profiler.Appender, Version=1.0.0.0, Culture=neutral, PublicKeyToken=0774796e73ebf640, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\..\..\lib\nhprof\HibernatingRhinos.Profiler.Appender.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.ComponentModel.DataAnnotations">
|
||||
@ -66,6 +70,7 @@
|
||||
<Compile Include="Controllers\HomeController.cs" />
|
||||
<Compile Include="Models\DebugLinkHandler.cs" />
|
||||
<Compile Include="Models\ShowDebugLink.cs" />
|
||||
<Compile Include="Profiler.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="ViewModels\ContentIndexViewModel.cs" />
|
||||
<Compile Include="ViewModels\ContentDetailsViewModel.cs" />
|
||||
|
13
src/Orchard.Web/Packages/Orchard.DevTools/Profiler.cs
Normal file
13
src/Orchard.Web/Packages/Orchard.DevTools/Profiler.cs
Normal file
@ -0,0 +1,13 @@
|
||||
using Orchard.Environment;
|
||||
|
||||
namespace Orchard.DevTools {
|
||||
public class Profiler : IOrchardShellEvents {
|
||||
public void Activated() {
|
||||
HibernatingRhinos.Profiler.Appender.NHibernate.NHibernateProfiler.Initialize();
|
||||
}
|
||||
|
||||
public void Terminating() {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user