1
0
mirror of https://github.com/DataDog/go-profiler-notes.git synced 2025-07-15 23:54:16 +02:00

Update README.md (#13)

This commit is contained in:
Taj Khattra
2022-02-12 06:39:41 -08:00
committed by GitHub
parent b8feda3caa
commit ab8bfc0188

View File

@ -416,7 +416,7 @@ func random_sample(duration, rate):
return true
```
In other words, if you set `rate` to `10.000` (the unit is nanoseconds), all blocking events lasting `10 µsec` or longer are captured. Additionally `10%` of events lasting `1 µsec` and `1%` of events lasting `1sec`, and so on, are captured as well.
In other words, if you set `rate` to `10.000` (the unit is nanoseconds), all blocking events lasting `10 µsec` or longer are captured. Additionally `10%` of events lasting `1 µsec` and `1%` of events lasting `100 nanoseconds`, and so on, are captured as well.
### Block vs Mutex Profiler