File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
develop-docs/sdk/telemetry/profiles Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -301,7 +301,10 @@ named "lockstep sampling" where the profiling samples occur at the same frequenc
301301application. Ideally, the samples should be much more frequent than any cycles in the application, or
302302at random intervals, so that the chance it occurs in any particular operation is proportional to the
303303amount 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
306309This explanation is an excerpt from [ this awesome StackOverflow answer] ( https://stackoverflow.com/a/45471031/1181370 )
307310which has more details and a nice analogy for the issue.
You can’t perform that action at this time.
0 commit comments