![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Is there any general guidance concerning the cost of using custom counters? My experiments show the overhead to be extremely low, but they may be distorted by JIT optimization or caching or... Are there any existing published guidelines on this subject? TIA. |
#3
| |||
| |||
|
|
Just using the perf counters in general will give you a fairly significant performance hit. When integrate custom perf counters into my app, i always have a way to turn them on and off, usually with a BooleanSwitch object being set in the config file. Under normal production execution your app should not use, write or read, any perf counters. you should just have a troubleshooting flag you can turn on and off. That way you only get the perf hit when you explicitly want to trouble shoot. "Rick Spiewak" wrote: Is there any general guidance concerning the cost of using custom counters? My experiments show the overhead to be extremely low, but they may be distorted by JIT optimization or caching or... Are there any existing published guidelines on this subject? TIA. |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |