Skip to content

Commit 2c8f18d

Browse files
BYKarmcknight
andauthored
prime context
Co-authored-by: Andrew McKnight <[email protected]>
1 parent 9381394 commit 2c8f18d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

develop-docs/sdk/telemetry/profiles/sample-format-v1.mdx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,10 @@ named "lockstep sampling" where the profiling samples occur at the same frequenc
301301
application. Ideally, the samples should be much more frequent than any cycles in the application, or
302302
at random intervals, so that the chance it occurs in any particular operation is proportional to the
303303
amount of time that operation takes. But this is often not feasible, so the next best thing is to use
304-
a sampling rate that doesn't coincide with the likely frequency of program cycles.
304+
a sampling rate that doesn't coincide with the likely frequency of program cycles.
305+
306+
We also chose 101 for its primality, whereas 1 below 100–99–is evenly divisible by several
307+
smaller numbers, which could lead to similar lockstep behavior.
305308

306309
This explanation is an excerpt from [this awesome StackOverflow answer](https://stackoverflow.com/a/45471031/1181370)
307310
which has more details and a nice analogy for the issue.

0 commit comments

Comments
 (0)