- Get link
- X
- Other Apps
- Get link
- X
- Other Apps
๐๐ฒ๐ป๐ฐ๐ต๐บ๐ฎ๐ฟ๐ธ ๐บ๐ฒ๐๐ต๐ผ๐ฑ๐ ๐ผ๐ป ๐๐ต๐ฒ ๐ณ๐น๐ with MethodTimer.
๐ ๐ฒ๐๐ต๐ผ๐ฑ๐ง๐ถ๐บ๐ฒ๐ฟ is a library that measures performance using the [๐ง๐ถ๐บ๐ฒ] ๐ฎ๐๐๐ฟ๐ถ๐ฏ๐๐๐ฒ.
It logs performance metrics to the debug output automatically.
The [๐ง๐ถ๐บ๐ฒ] attribute adds ๐ฆ๐๐ผ๐ฝ๐๐ฎ๐๐ฐ๐ต and ๐ง๐ฟ๐ฎ๐ฐ๐ฒ.๐ช๐ฟ๐ถ๐๐ฒ๐๐ถ๐ป๐ฒ around methods at compile time.
To customize behavior, define a static class ๐ ๐ฒ๐๐ต๐ผ๐ฑ๐ง๐ถ๐บ๐ฒ๐๐ผ๐ด๐ด๐ฒ๐ฟ with a Log method.
It supports elapsed time as long or TimeSpan value.
In this method, you can implement your own logging approach.
You can even include parameter values in logs using string formatting in the attribute definition.
Comments