Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aliozgur/perfitmvc
Performance Monitor Action Filters for ASP.NET MVC
https://github.com/aliozgur/perfitmvc
Last synced: about 2 months ago
JSON representation
Performance Monitor Action Filters for ASP.NET MVC
- Host: GitHub
- URL: https://github.com/aliozgur/perfitmvc
- Owner: aliozgur
- Created: 2013-08-23T16:25:23.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-09-05T12:10:44.000Z (over 11 years ago)
- Last Synced: 2024-11-05T07:39:33.196Z (about 2 months ago)
- Language: JavaScript
- Size: 10.1 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## PerfIt MVC!
Windows performance monitoring for ASP.NET MVC controller actions
[Adapted from PerfIt by Ali Kheyrollahi](https://github.com/aliostad/PerfIt)
## How to install and use?
1. Reference PerfItMvc in your ASP.NET MVC Application2. Decorate your controller actions with __PerfItMvcFilterAttribute__
3. Add an [Installer class] (http://msdn.microsoft.com/en-us/library/system.configuration.install.installer.aspx) to your ASP.NET MVC Project
4. Override Install and Uninstall methods of the newly added Installer class
```c#
public override void Install(IDictionary stateSaver)
{
base.Install(stateSaver);
PerfItMvcRuntime.Install();
}public override void Uninstall(IDictionary savedState)
{
base.Uninstall(savedState);
PerfItMvcRuntime.Uninstall();
}
```5. Open Visual Studio Developer Command prop as __Administrator_
6. Enter InstallUtil.exe -i " < Path to your ASP.NET MVC app DLL > "
_To Uninstall you can use -u switch_7. In you Global.asax file
* PerfItMvcRuntime.Start("PerfItMvc.SampleApp") to Application_Start()
* PerfItMvcRuntime.Stop() to Application_End()## Samples
* For sample usage please refer to the [Sample ASP.NET MVC 4 App] (/src/PerfItMvc/PerfItMvc.SampleApp)
* You can refer to Ali Kheyrollahi's [blog post](http://byterot.blogspot.co.uk/2013/04/Monitor-your-ASP-NET-Web-API-application-using-your-own-custom-counters.html) for installation of the original PerfIt.