-
Notifications
You must be signed in to change notification settings - Fork 0
MeasurePerformanceAttribute
Michael Powell edited this page Feb 6, 2017
·
4 revisions
The MeasurePerformanceAttribute
exposes several constructor parameters as well as properties.
Parameter / Attribute | Values |
---|---|
validOn | AttributeTargets.Method |
AllowMultiple | true |
Inherited | true (default) |
Parameter | Type | Description |
---|---|---|
counterName | System.String |
Counter name |
categoryType | System.Type |
Performance counter category type |
adapterType | System.Type |
Performance counter adapter type |
otherAdapterTypes |
System.Type[] (params ) |
Additional performance counter adapter types |
Property | Type | Default | Description |
---|---|---|---|
ReadOnly |
System.Boolean (underlying, System.Nullable<System.Boolean>
|
false | |
InstanceLifetime | System.Diagnostics.PerformanceCounterInstanceLifetime |
Process |
|
PublishCounters | System.Boolean |
true | |
ThrowPublishErrors | System.Boolean |
false | |
PublishEvent | System.Boolean |
true | |
MayProceedUnabated | System.Boolean |
``PublishCounter | |
SampleRate | System.Double |
1.0 |
Multiple performance measurements may decorate a single method. Additionally, performance measurements found in derived classes overshadow those found in base classes.
- Framework agnostic
- ASP.NET