GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - SoulcodeAgency/sitecore-module-profiling

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

22 Commits
22 Commits

Folders and files

NameName
Last commit message
Last commit date
src
src
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
GitVersion.yml
GitVersion.yml
 
 
README.md
README.md
 
 
Settings.StyleCop
Settings.StyleCop
 
 
Unic.Profiling.sln
Unic.Profiling.sln
 
 
Unic.Profiling.sln.DotSettings
Unic.Profiling.sln.DotSettings
 
 
appveyor.yml
appveyor.yml
 
 

Repository files navigation

Sitecore Profiling Module

Use this module to include profiling into your projects or modules. This module contains two separate projects and NuGet packages:

  • Unic.Profiling: This is used for creating the profiling, add and stop profiling etc. in your code. This does actually nothing than firing some events.
  • Unic.Profiling.MiniProfiler: This takes the profiling events from the other project and forward them to the MiniProfiler. Use this project if you want to see an output of the profiling settings from the other project.

Installation

Configuring profiling

Install the NuGet package Unic.Profiling on projects where you want to add a profiling.

See profiling output

Install the NuGet package Unic.Profiling.MiniProfiler on web projects where you want to see the output of the configured profilings. After the installation you need to add the output directly before the closing </body> tag the view:

@using StackExchange.Profiling;
<head>
	...
</head>
<body>
	...
	@MiniProfiler.RenderIncludes()
</body>

To disable the MiniProfiler output, you can set the following config in the web.config file. By default, MiniProfiler is enabled.

<configuration>
	<appSettings>
		<add key="Profiling.DisableMiniProfier" value="true" />
	</appSettings>
</configuration>

Usage

For profiling your code, you just need to add a line of code each for starting and ending the profiling. It is important the event name is the same for starting and ending the profiling:

Unic.Profiling.Profiler.Profiler.OnStart(this, "My code");

...

Unic.Profiling.Profiler.Profiler.OnEnd(this, "My code");

About

No description, website, or topics provided.

Resources

Readme
Activity
Custom properties

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.